Truncate a file: Difference between revisions

Content added Content deleted
(→‎{{header|C}}: POSIX truncate)
m ({{header|ZX Spectrum Basic}})
Line 181:
 
<lang zxbasic>10 CLEAR 29999
20 PRINTINPUT "StartWhich tapefile todo loadyou filewant to truncate.?";f$
30 INPUTPRINT "WhichStart filetape doto youload wantfile to truncate?.";f$
40 LOAD f$ CODE 30000
50 "Input how many bytes do you want to keep?";n