The Put, LinePrint, and WriteFields methods each write a different kind of data to a file. Each method adds unique format information to the file.
The Put method works with Binary or Random mode files. Put writes Variant data to a file by first writing a 2-byte code for the Variant type and then writing the information that the Variant contains. The optional recnumber parameter specifies the record or byte number where writing begins.
The LinePrint method writes strings to a file. LinePrint adds a carriage return/ line feed combination to each string.
The WriteFields method writes an array of data to a file as a stream of characters. WriteFields uses a comma character to separate each element.