VisKProg HELP - ReadFile


See also *** Example *** Function index

The ReadFile function reads the data from a given file.

Syntax:

    [ return_value = ] ReadFile ( fileName );

Detailed description:

The ReadFile function reads the file, specified by the given filename, and returns it's data in the return value. You must use a correct VisKProg file variable as argument. To ask the user for a filename, use the GetOpenFilename function. You can also use a term like "myvar = ReadFile( GetOpenFilename() );"
If the given file is not a correct VisKProg variable, an error occours. If the file does not exist (or if the user has no read permission), the function returns an empty string.

See also:

GetOpenFilename function, GetSaveFilename function, WriteFile function,


© 2000 by Christoph Pinkel