Jump to content

Create a file on magnetic tape: Difference between revisions

m
Category:Hardware / move Category to top
(task2 -> task)
m (Category:Hardware / move Category to top)
Line 1:
{{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.
 
Line 204 ⟶ 220:
 
=={{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:
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}}
{{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}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.