Get your own free workspace
View
 

WriteString

Page history last edited by Gamemaster 3 years, 9 months ago

 

 

WriteString

Usage:

                WriteString(Handle, Value)

Description:

The WriteString command writes a string (four bytes plus string length) to file at the current file position. The file position is then advanced to where the string ends in the file.

The Handle parameter is the file handle returned by ReadFile, WriteFile or OpenFile. Value is the string to write to the file. Note that strings written in this way cannot be edited by a human (e.g. using Notepad, or a similar program), and then read successfully again by your script. If you need to do this, use WriteLine.

Example:

                Function Main()
                        F = WriteFile("Test.dat")
                                WriteString(F, "Some text")
                        CloseFile(F)
                        Return()

                End Function

Comments (0)

You don't have permission to comment on this page.