Create a file: Difference between revisions

Content added Content deleted
(Create a file en Yabasic)
(Added XPL0 example.)
Line 2,566: Line 2,566:
int 0x80 ; Make kernel call
int 0x80 ; Make kernel call
ret
ret
</lang>

=={{header|XPL0}}==
XPL0 does not currently create directories.
To create a file in the root directory, assuming you have permission,
insert a slash at the beginning, like this: /output.txt

<lang XPL0>
int FD;
FD:= FOpen("output.txt", 1);
</lang>
</lang>