FileGet

Converts a file to a string variable.

Syntax:

FileGet (filename [, null-char])

Parameters:

(s) filename name of the file to read.

(s) null-char [optional] specifies the character which NULL characters in the file will be replaced with in the string. If omitted or a blank string (""), then NULL characters will be removed.

Returns:

(s) a string containing the file contents.

This function supports extended-length path names.

Example:


filename = "c:\temp\readme.txt"
data = FileGet(filename , "")
Message(StrCat("Contents of ",filename),data)
Exit
See Also:

IntControl 39, FilePut, FileRead