Concept Framework 1.0 documentation Contents | Index

standard.C.io.ReadFile

Name Version Deprecated
ReadFile version 1.0 no

Prototype:
string ReadFile(string path)

Parameters:
path      [in] A string containing the path of existing file.

Description:
Reads the entire content of a file into a string. Warning: This function provides very small error control (it returns an empty string if the file couldn't be read, but it returns the same when reading a file that has 0 bytes in length).
This is the recommended function to use when working with small to medium files. (file sizes smaller than 50 megabytes. When using on large files, you'll have the entire file in the memory). For writing a file, you may want to check the WriteFile function.

Returns:
Returns the content of a file. If the file couldn't be read, the returned string is empty.

Documented by Simona Plesuvu, generation time: Thu Oct 15 20:02:04 2009 GMT(c)2009 RadGs Software