Jump to content

Create a file on magnetic tape: Difference between revisions

Test: template Task2
(Test: template Task2)
Line 1:
{{tasktask2|File System Operations}}
The task is to create a new file called "TAPE.FILE" of any size on Magnetic Tape
 
Line 194:
STATUS = CREATE ("tape.file",tape-o,-std-)
PRINT STATUS</lang>
{{Out}}
Output:
<pre>
OK
Line 210:
The ZX Spectrum does not have file type extensions, so we save as TAPEFILE, rather than TAPE.FILE. We can use any start address, depending on where we want the data to come from. Here we dump the contents of the screen:
<lang zxbasic>SAVE "TAPEFILE" CODE 16384,6912</lang>
 
{{omit from|AWK|not OO}}
{{omit from|BASIC|not OO}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.