Create a file: Difference between revisions
Adds slope example
Thundergnat (talk | contribs) 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}}==
|