Section 13.2: channel Up Chapter 13: Aubit4GL Packages Section 13.4: memcached 

13.3 file

This is a library exposing various STDIO functions from the standard C library. Handles are all standard 4GL INTEGER’s.

13.3.1 Dependencies

None

13.3.2 Function list

13.3.2.1 popen

Open a pipe for reading/write
popen(p_command,mode) 

13.3.2.2 fopen

Open a file for reading or writing
fopen(filename,mode) 

13.3.2.3 ftell

indicate the current position in a file
ftell(handle) 

13.3.2.4 ferror

Tests if there is an error on a file handle
ferror(handle) 

13.3.2.5 fseek

move the current position in a file
fseek(handle,n) 

13.3.2.6 fseek_from_end

move the current position in a file, counting backwards from the end of the file
fseek_from_end(handle,n) 

13.3.2.7 fsize

get the size of a file
fsize(handle) 

13.3.2.8 fgets

read a string line from a file
fgets(handle) 

13.3.2.9 feof

test if the position of the end of the file
feof(handle) 

13.3.2.10 fclose

close the file associated with the handle
fclose(handle) 

13.3.2.11 rewind

move the position back to the start of the file
rewind(handle)
 Section 13.2: channel Up Chapter 13: Aubit4GL Packages Section 13.4: memcached