FilePut
Previous Top Next

FilePut writes a number or a string at a specific position in a file connection.
Syntax: FilePut (Connection name, Position, Text - True | False, String | Number)
Each number written captures 8 bytes.
Each letter in a string captures 1 bytes.
Example:
FileOpen (c1, "data.dat", cRandom)
FilePut (c1, 8, false, 2323313.2563) 'writes this number starting from position 8 to 15
FilePut (c1,16,true,"this is a string")'writes the text starting from position 16 to 31
FileClose (c1)