Jump to content

Create a file: Difference between revisions

Adds slope example
m (syntax highlighting fixup automation)
(Adds slope example)
Line 2,365:
<syntaxhighlight lang="slate">(File newNamed: '/output.txt') touch.
(Directory root / 'output.txt') touch.</syntaxhighlight>
 
=={{header|Slope}}==
 
Local:
<syntaxhighlight lang="slate">(close (file-open-write "output.txt"))
(mkdir "dir" 0755)</syntaxhighlight>
 
Root:
<syntaxhighlight lang="slate">(close (file-open-write "/output.txt"))
(mkdir "/dir" 0755)</syntaxhighlight>
 
 
=={{header|Smalltalk}}==
37

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.