Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfarrsave()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfArrSave()
Saves an array on a disk
------------------------------------------------------------------------------
Syntax:

     dfArrSave( <aSource>, <cFileName> ) --> lSuccess

Parameters:

     <aSource>  Array to be saved
     <cFileName> File name. The file is created without testing if another
     file with the same name is already present on the disk.

Returns:

     <lSuccess> Is .T. if the operation was correctly performed

Description:

     Saves an array on a disk
     
     N.B.
     
     The array can only contain the following data types:
     
     +-------------------------------+
     |    Type     |   Description   |
     |-------------+-----------------|
     |      A      |   Array         |
     |      C      |   Character     |
     |      D      |   Date          |
     |      L      |   Logical       |
     |      N      |   Number        |
     |      U      |   NIL           |
     +-------------------------------+
     
     The following data types are converted to NIL:
     
     +-------------------------------+
     |    Type     |   Description   |
     |-------------+-----------------|
     |      B      |   Block         |
     |      M      |   Memo          |
     |      O      |   Object        |
     +-------------------------------+

Example:

     LOCAL aTest := { ;
                      "Test",     ;
                      15.2,        ;
                      {},          ;
                      DATE(),      ;
                      {1, {TIME()}, NIL, 3} }
     LOCAL aRest
     
     
     ? ". Save Array"
     dfArrSave( aTest, "Test.arr" )
     
     ? ". Restore Array"
     aRest := dfArrRest( "Test.arr" )
     
     ? ". FINISH"

See also:

     dfArrRest()

See Also: dfArrRest()

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