WritelnAsc

Prev Next Home Home Table Of Contents Index

WritelnAsc (File,Array)

WritelnAsc writes one line to the end of a comma delimited ascii text file. Each element of the array becomes one field of that line. Writeln can be used two ways. You can either open a file with FileAssign and FileCreate or FileAppend, or you can just pass the name of the file.

Passing the name alone assumes that you want to append the file, write one line, and close the file. You would want to use FileAssign if you are going to write several lines to a file.


Example:
var A A = set['MARC PERKEL','NERD',38] WritelnAsc('TEST.TXT',A) ;appends "MARC PERKEL","NERD",38 to file TEST.TXT

Example:
var X Y F FileAssign(F,'MULT.TBL') FileCreate(F) Loop 9 X = LoopIndex Loop 9 AppendArray(Y,LoopIndex * X) EndLoop WritelnAsc(F,Y) dispose(Y) EndLoop FileClose(F)

See Also: WriteAscTextFile

Category: File

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home