ajfile


Data type AjPFile

Ajax file object. Holds information for an open (unbuffered) input or output file.

On output, conversion code "%F" writes the filename.

Alias name(s)

NameDescription
AjSFile
AjOFile

Attributes

NameTypeDescription
fpC file pointer
NameFile name as used when opening
ListList of file names (first is open)
EndTrue if EOF has been reached
AppTrue if file was opened for append.
BuffBuffer for latest line read
WorkbufferBlock as a buffer for fgets etc
ReadblockBlock as a buffer for fread
FileposFile offset for start of latest read
BlocksizeRead block maximum size
BlockposRead block position
BlocklenRead block length used
BuffsizeBuffer size (zero for default size)
HandleAJAX file number 0 if unused
PidProcess PID if any


Data type AjPFilebufflist

Ajax file buffer, holding a simple linked list of buffered lines. This does not use the AjPList objects.

This is a substructure of the AjPFilebuff object.

Attributes

NameTypeDescription
LineString : this line
NextNext line in the list, NULL for last
FposFile offset for start of this line


Data type AjPFilebuff

Ajax buffered file object. Holds information for a buffered input file.

Alias name(s)

NameDescription
AjSFilebuff
AjOFilebuff

Attributes

NameTypeDescription
FileThe input file - data to be buffered
LinesAll lines ... where the data really is
FreelinesFree list of lines for reuse
CurrCurrent line in Lines list
PrevPrevious line (points to Curr for delete)
LastLast line for quick appending
FreelastLast free line for quick append
Nobuffif true, do not buffer the file
PosPosition in list
SizeSize of list
FreeSizeSize of free list
FposFile position in File


Data type AjPDir

Ajax directory object. Holds information for an open input directory.

Alias name(s)

NameDescription
AjSDir
AjODir

Attributes

NameTypeDescription
NamePath
PrefixDefault filename prefix
ExtensionDefault file extension


Data type AjPDirout

Ajax output directory object. Holds information for an open output directory.

Alias name(s)

NameDescription
AjSDirout
AjODirout

Attributes

NameTypeDescription
NamePath
ExtensionDefault file extension


Data type AjPOutfile

Ajax file object. Holds information for an open (unbuffered) input or output file.

On output, conversion code "%F" writes the filename.

Alias name(s)

NameDescription
AjSOutfile
AjOOutfile

Attributes

NameTypeDescription
FileFile object
TypeNamed data file type
FormatstrFormat specific for this data type
ItypeIndex number for Type
FormatIndex for Formatstr for this data type