|
opens a file or creates a new file.
file_open ( file_name, mode );
file_name The name of the file to open or create.
mode The file mode:
FO_MODE_READ, or 0 (read only);
FO_MODE_WRITE, or 1 (write only);
FO_MODE_APPEND, or 2 (write only, to the end of the file).
Note that if the file does not exist in the specified path, then if the file mode is FO_MODE_WRITES, WinRunner creates the file. If the specified path does not exist, the file is not created and the command fails.
WinRunner, Mercury Interactive and the Mercury Interactive logo are registered trademarks or trademarks of Mercury Interactive Corporation in the United States and/or other countries.
[ 本帖最后由 tianyu124 于 2006-10-27 09:38 编辑 ] |
|