![]() ![]() ![]() ![]() | Table Of Contents | Index |
Example:Do not use FileOpen with ReadTextFile.
Var DocsReadTextFile('MARXMENU.DOC',Docs) ;After the read, Docs[1] becomes the first line of the file. ;Docs[NumberOfElements(Docs)] becomes the last line. Loop Docs ; Convert each line to its uppercase equivalent LoopVal = UpperCase LoopVal EndLoop ;Save the newly formatted array WriteTextFile ('NEWMM.DOC',Docs)
The power of the ReadTextFile and WriteTextFile have expanded. You can now load and save arrays of any variable types, multidimensional arrays, and mixed array types. This includes strings, numbers, and booleans. File variables are also stored. When a file variable is stored and reloaded the FileAssign command is not necessary.
See Also: | LongestLine | TextWrapPoint |
---|
Category: | File | Array | LongName |
---|
![]() ![]() ![]() ![]() | Table Of Contents | Index |
|