Open file given name and access mode. The most usual modes are ''r'' for reading and ''w'' for writing. Return value is the file pointer fp, which is used in functions reading and writing the file.
SEE ALSO: freopen.