Xiqual 0.7.2

In file xitools/files.c:

autofile* file_new

(char* filename,
  int write)

Open an autofile.

Documentation

Open an autofile. This function will either open an existing file, or create a new one for writing/append if the write parameter is set.

If a file exists and is opened for reading, af->size will contain its size.

Parameters:
filename - Name of a file to open/create.
- write Non-NULL to create a file.
Returns:
If the file exists or was created, return an autofile pointer.
Author:
Ronny Bangsund
See Also:
autofile, file_read(), file_write(), file_scan(), file_seek(), file_free()

Alphabetic index



This page was generated with the help of DOC++.