Create a file on magnetic tape: Difference between revisions

Content added Content deleted
(task2 -> task)
m (Category:Hardware / move Category to top)
Line 1: Line 1:
{{task|File System Operations}}
{{task|File System Operations}} [[Category:Hardware]]
{{omit from|AWK|not OO}}
{{omit from|BASIC|not OO}}
{{omit from|C|not OO}}
{{omit from|Fortran|not OO}}
{{omit from|GUISS}}
{{omit from|Locomotive Basic}}
{{omit from|M4}}
{{omit from|Mathematica|Cannot create basic classes}}
{{omit from|Maxima}}
{{omit from|Metafont}}
{{omit from|Octave}}
{{omit from|PARI/GP}}
{{omit from|Retro}}
{{omit from|TI-89 BASIC}}
{{omit from|zkl}}

The task is to create a new file called "TAPE.FILE" of any size on Magnetic Tape.
The task is to create a new file called "TAPE.FILE" of any size on Magnetic Tape.


Line 204: Line 220:


=={{header|ZX Spectrum Basic}}==
=={{header|ZX Spectrum Basic}}==
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:
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>
<lang zxbasic>SAVE "TAPEFILE" CODE 16384,6912</lang>

{{omit from|AWK|not OO}}
{{omit from|BASIC|not OO}}
{{omit from|C|not OO}}
{{omit from|Fortran|not OO}}
{{omit from|GUISS}}
{{omit from|Locomotive Basic}}
{{omit from|M4}}
{{omit from|Mathematica|Cannot create basic classes}}
{{omit from|Maxima}}
{{omit from|Metafont}}
{{omit from|Octave}}
{{omit from|PARI/GP}}
{{omit from|Retro}}
{{omit from|TI-89 BASIC}}
{{omit from|zkl}}