|
||
int tfile_make ( char *input_path, char *output_path )
char *input_path; // Pointer to a null-terminated character string char *output_path; // Pointer to a null-terminated character string
|
|
|||||
Synopsis |
#include "silver.h"
The tfile_make function compiles an ASCII text file into a tfile (text file). The resulting tfile is designed for rapid access to C-style character strings via a message number (see tfile_gets).
|
|
||||
Parameters |
intput_path is a null-terminated character string containing the path of the input file output_path is a null-terminated character string containing the path of the output file
|
|
||||
Return Value |
tfile_make returns FALSE if the input file cannot be opened, the output file cannot be created, the input file has a different format than required, or some other error occurs; otherwise tfile_make returns TRUE.
|
|
||||
Remarks |
The longest string that can be stored in a tfile is 450 characters. The format of an input file is as follows:
|
|
||||
See Also |
tfile_open, tfile_gets, tfile_close
|
|
||||
Example |
The following is a sample input file:
|
|