English
Chinese
  yTin Online Help  

  Home (english) | Home (chinese) | Downloads | Sample scripts | Online help | Utilities | FAQs | Discussions/Messages | Mud&links | My Progs | Mirrors |
fopen

format:         #fopen {filename} {mode}
The variable _ is assigned to a FILE pointer that was opened if successful, 0 if failed.

Example:         #fopen {test.dat} {a+}
                     #var {FilePointer} {$_}
                     ... ...
                     #fclose {$FilePointer}

For detailed help on the fopen, see the C help file on:
               FILE *fopen( const char *filename, const char *mode );

See also: #fopen/#fclose, #feof, #fseek, #fgets, #fputs, #fread, #fwrite, #remove, #rename, #sysecho