Create a file: Difference between revisions

Content added Content deleted
m (syntax highlighting fixup automation)
(Adds slope example)
Line 2,365: Line 2,365:
<syntaxhighlight lang="slate">(File newNamed: '/output.txt') touch.
<syntaxhighlight lang="slate">(File newNamed: '/output.txt') touch.
(Directory root / 'output.txt') touch.</syntaxhighlight>
(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}}==
=={{header|Smalltalk}}==