freopen()
Opens the named file for reading or writing, attaching an existing file handle to it. Returns a file value; NULL if the file cannot be opened (that is, file does not exist). Binary mode is not currently supported for files.
See also: fopen().
Syntax:
freopen(name, mode, handle);
where
name is a string; name of file to open.
mode is a string; type of action to perform, where:
- "W" = write
- "R" = read
- "A" = append
handle is a string; handle to be reopened.
Example:
decl file, fid; file = freopen ("myfile.dat", "R", fid); fclose(fid);
Where Used:
Measurement Expressions (Data Display equations and Schematic MeasEqns), Schematic, Layout, Simulation, GUI
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()