Code:
//Open a file, returns a handle or 0 on failure
native fopen(const filename[],const mode[]);
//Reads a line from a text file -- includes newline!
native fgets(file, buffer[], maxlength);
//Returns 1 if the file is ended, 0 otherwise
native feof(file);
//Closes a file handle
native fclose(file);
/* Checks if source contains string with case ignoring. On success function
* returns position in source, on failure returns -1. */
native containi(const source[],const string[]);
/* Returns converted string to number. */
native str_to_num(const string[]);
/* Gets parameters from text.
* Example: to split text: "^"This is^" the best year",
* call function like this: parse(text,arg1,len1,arg2,len2,arg3,len3,arg4,len4)
* and you will get: "This is", "the", "best", "year"
* Function returns number of parsed parameters. */
native parse(const text[], ... );