On output, conversion code "%F" writes the filename.
| Name |
|---|
| AjSFile |
| AjOFile |
| Name | Type | Description |
|---|---|---|
| fp | FILE* | C file pointer |
| Name | AjPStr | File name as used when opening |
| Printname | AjPStr | File name in a clean form for reporting |
| List | AjPList | List of file names (first is open) |
| End | AjBool | True if EOF has been reached |
| App | AjBool | True if file was opened for append. |
| Buff | AjPStr | Buffer for latest line read |
| Workbuffer | char* | Block as a buffer for fgets etc |
| Readblock | char* | Block as a buffer for fread |
| Filepos | ajlong | File offset for start of latest read |
| Blocksize | ajuint | Read block maximum size |
| Blockpos | ajuint | Read block position |
| Blocklen | ajuint | Read block length used |
| Buffsize | ajuint | Buffer size (zero for default size) |
| Handle | ajint | AJAX file number 0 if unused |
| Pid | pid_t | Process PID if any (non-WIN32 only) |
| Process | HANDLE | Process handle (WIN32 only) |
| Thread | HANDLE | Thread handle (WIN32 only) |
This is a substructure of the AjPFilebuff object.
| Name |
|---|
| AjSFilebufflist |
| AjSOilebufflist |
| Name | Type | Description |
|---|---|---|
| Line | AjPStr | String : this line |
| Next | struct AjSFilebufflist* | Next line in the list, NULL for last |
| Fpos | ajlong | File offset for start of this line |
| Name |
|---|
| AjSFilebuff |
| AjOFilebuff |
| Name | Type | Description |
|---|---|---|
| File | AjPFile | The input file - data to be buffered |
| Lines | AjPFilebufflist | All lines ... where the data really is |
| Freelines | AjPFilebufflist | Free list of lines for reuse |
| Curr | AjPFilebufflist | Current line in Lines list |
| Prev | AjPFilebufflist | Previous line (points to Curr for delete) |
| Last | AjPFilebufflist | Last line for quick appending |
| Freelast | AjPFilebufflist | Last free line for quick append |
| Nobuff | AjBool | if true, do not buffer the file |
| Pos | ajint | Position in list |
| Size | ajint | Size of list |
| FreeSize | ajint | Size of free list |
| Fpos | ajlong | File position in File |
| Name |
|---|
| AjSDir |
| AjODir |
| Name | Type | Description |
|---|---|---|
| Name | AjPStr | Path |
| Printname | AjPStr | Directory path in a clean form for reporting |
| Prefix | AjPStr | Default filename prefix |
| Extension | AjPStr | Default file extension |
| Name |
|---|
| AjSDirout |
| AjODirout |
| Name | Type | Description |
|---|---|---|
| Name | AjPStr | Path |
| Printname | AjPStr | Directory path in a clean form for reporting |
| Extension | AjPStr | Default file extension |
On output, conversion code "%F" writes the filename.
| Name |
|---|
| AjSOutfile |
| AjOOutfile |
| Name | Type | Description |
|---|---|---|
| File | AjPFile | File object |
| Type | AjPStr | Named data file type |
| Formatstr | AjPStr | Format specific for this data type |
| Itype | ajuint | Index number for Type |
| Format | ajint | Index for Formatstr for this data type |
| Records | ajuint | Number of records written |
| Padding | char[4] | Padding to alignment boundary |