HTBasic Help
×
Menu
Index

Windows Files

 
Standard Windows files do not have a file type and by default are written with FORMAT OFF. But, you can use FORMAT ON for DOS ASCII files that contain characters that are all in the printable ASCII range, and lines that are terminated with a carriage return line feed (CR/LF) sequence. Lines in Windows files are terminated with just a line feed.
 
10 CREATE "TEMP.TXT",512 ! CREATE Ordinary file
20 ASSIGN @X TO "TEMP.TXT";FORMAT ON ! for DOS
30 INTEGER I
40 FOR I=1 TO 10
50 OUTPUT @X;"Line #";I
60 NEXT I
70 ASSIGN @X TO *
80 END