Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>convert a text file to an array</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Convert a text file to an array
------------------------------------------------------------------------------

 Syntax

        GT_File2a(<cFile>,[<aData>]) -> aData

 Arguments:

      <cFile> is the name (including any path and
      extension) of the text file to read from.

      <aData> is an array to use to put the data into
      added.

 Returns:

      GT_File2a() returns an array.

 Description:

      To read a text file in line by line and build an
      array of the text, one line for each array element.

 Examples:

      // Build a new array
      aData := GT_File2a('C:\Import.txt')

      // And add some more ....
      aData := GT_File2a('C:\Import2.txt',aData)

 Source: GT_FILE2.PRG

 Author:  Martin Bryant

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson