VisKProg HELP - WriteFile


See also *** Example *** Function index

The WriteFile function writes down a file from a string.

Syntax:

    [ return_value = ]WriteFile ( fileName, newData );

Detailed description:

The WriteFile function writes the data from a string to a file, specified by fileName. WriteFile returns either "TRUE" (succeeded) or "FALSE" (failed), the latter if the specified file is read only. You must use a correct VisKProg file variable as argument. To ask the user for a filename, use the GetSaveFilename function. If the file does not exist, it will be created, if it allready exists, it will be overwritten. If the given file name is not a correct VisKProg file variable, an error occours. If the file variable is an empty string ("") then nothing happens.

See also:

GetOpenFilename function, GetSaveFilename function, ReadFile function,


© 2000 by Christoph Pinkel