• File Access

    From PistolGrip@VERT/WASTELND to Jim King on Mon Apr 2 15:09:00 2001
    Here's a simple example for a text based file.ãã##### START ##############################################################ã!include file_io.incãã# Variable Definitionsãint file_handleããstr stringãstr string2ãã# Sets a variable to a valueãset string2 "Hello, World."ããfopen file_handle O_RDWR "%n..\baja\somedir\somefile.txt"ãif_falseã print "\r\nnError opening File!\r\n"ã returnãend_ifããfread_line file_handle string # reads line from file into variableãfset_pos file_handle 0 SEEK_END # sets file position to end of fileãfprintf file_handle "%s" string # writes variable to fileããfclose file_handleã##### END ##############################################################ããPGãã---ã þ Synchronet þ WasteLand BBS þ telnet://wasteland.darktech.org ã