ajfileio.c

Datatypes:
AjPFile File object
AjPFilebuff Buffered file object


Datatype: AjPFile

Function is for manipulating input files and returns or takes at least one AjPFile argument.

Sections:
file line read operationsInput
file binary read operationsInput


AjPFile: file line read operations

Functions:
ajReadlineRead a line from a file.
ajReadlineAppendReads a record from a file and appends it to the user supplied buffer.
ajReadlinePosReads a line from a file.
ajReadlineTrimReads a line from a file and removes any trailing newline.
ajReadlineTrimPosReads a line from a file and removes any trailing newline.


Function ajReadline

Read a line from a file.

Prototype

AjBool ajReadline (
      AjPFile file,
      AjPStr* Pdest
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
AjPStr*PdestOutputBuffer to hold the current line.
AjBool RETURNajTrue on success.

From EMBOSS 6.0.0


Function ajReadlineAppend

Reads a record from a file and appends it to the user supplied buffer.

Prototype

AjBool ajReadlineAppend (
      AjPFile file,
      AjPStr* Pdest
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
AjPStr*PdestModifyBuffer to hold results.
AjBool RETURNajTrue on success.

From EMBOSS 6.0.0


Function ajReadlinePos

Reads a line from a file.

Prototype

AjBool ajReadlinePos (
      AjPFile file,
      AjPStr* Pdest,
      ajlong* Ppos
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
AjPStr*PdestOutputBuffer to hold the current line.
ajlong*PposOutputFile position before the read.
AjBool RETURNajTrue on success.

From EMBOSS 6.0.0


Function ajReadlineTrim

Reads a line from a file and removes any trailing newline.

Prototype

AjBool ajReadlineTrim (
      AjPFile file,
      AjPStr* Pdest
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
AjPStr*PdestOutputBuffer to hold the current line.
AjBool RETURNajTrue on success.

From EMBOSS 6.0.0


Function ajReadlineTrimPos

Reads a line from a file and removes any trailing newline.

Prototype

AjBool ajReadlineTrimPos (
      AjPFile file,
      AjPStr* Pdest,
      ajlong* Ppos
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
AjPStr*PdestOutputBuffer to hold the current line.
ajlong*PposOutputFile position before the read.
AjBool RETURNajTrue on success.

From EMBOSS 6.0.0


AjPFile: file binary read operations

Functions:
ajReadbinBinaryBinary read from an input file object using the C 'fread' function.
ajReadbinCharReads a character string from a file
ajReadbinCharTrimReads a character string from a file and trims trailing spaces
ajReadbinIntBinary read of an unsigned integer from an input file object using the C 'fread' function. Converts from little-endian.
ajReadbinIntEndianBinary read of an unsigned integer from an input file object using the C 'fread' function. Converts from big-endian.
ajReadbinIntLocalBinary read of an unsigned integer from an input file object using the C 'fread' function. No conversion (assumes integer was written on the same system).
ajReadbinInt2Binary read of a 2 byte integer from an input file object using the C 'fread' function. Converts from little-endian.
ajReadbinInt2EndianBinary read of an unsigned integer from an input file object using the C 'fread' function. Converts from big-endian.
ajReadbinInt2LocalBinary read of an unsigned integer from an input file object using the C 'fread' function. No conversion (assumes integer was written on the same system).
ajReadbinInt4Binary read of a 4 byte integer from an input file object using the C 'fread' function.
ajReadbinInt4EndianBinary read of an unsigned integer from an input file object using the C 'fread' function. Converts from big-endian.
ajReadbinInt4LocalBinary read of an unsigned integer from an input file object using the C 'fread' function. No conversion (assumes integer was written on the same system).
ajReadbinInt8Binary read of an 8 byte integer from an input file object using the C 'fread' function. Converts from little-endian.
ajReadbinInt8EndianBinary read of an unsigned integer from an input file object using the C 'fread' function. Converts from big-endian.
ajReadbinInt8LocalBinary read of an unsigned integer from an input file object using the C 'fread' function. No conversion (assumes integer was written on the same system).
ajReadbinUintBinary read of an unsigned integer from an input file object using the C 'fread' function.
ajReadbinUintEndianBinary read of an unsigned integer from an input file object using the C 'fread' function. Converts from big-endian.
ajReadbinUintLocalBinary read of an unsigned integer from an input file object using the C 'fread' function. No conversion (assumes integer was written on the same system).
ajReadbinUint2Binary read of an unsigned integer from an input file object using the C 'fread' function. Converts from little-endian.
ajReadbinUint2EndianBinary read of an unsigned integer from an input file object using the C 'fread' function. Converts from big-endian.
ajReadbinUint2LocalBinary read of an unsigned integer from an input file object using the C 'fread' function. No conversion (assumes integer was written on the same system).
ajReadbinUint4Binary read of an unsigned integer from an input file object using the C 'fread' function. Converts from little-endian.
ajReadbinUint4EndianBinary read of an unsigned integer from an input file object using the C 'fread' function. Converts from a big-endian.
ajReadbinUint4LocalBinary read of an unsigned integer from an input file object using the C 'fread' function. No conversion (assumes integer was written on the same system).
ajReadbinUint8Binary read of an unsigned integer from an input file object using the C 'fread' function. Converts from little-endian.
ajReadbinUint8EndianBinary read of an unsigned integer from an input file object using the C 'fread' function. Converts from big-endian.
ajReadbinUint8LocalBinary read of an unsigned integer from an input file object using the C 'fread' function. No conversion (assumes integer was written on the same system).


Function ajReadbinBinary

Binary read from an input file object using the C 'fread' function.

Prototype

size_t ajReadbinBinary (
      AjPFile file,
      size_t count,
      size_t size,
      void* buffer
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
size_tcountInputNumber of elements to read.
size_tsizeInputNumber of bytes per element.
void*bufferOutputBuffer for output.
size_t RETURNReturn value from 'fread'

From EMBOSS 6.0.0


Function ajReadbinChar

Reads a character string from a file

Prototype

size_t ajReadbinChar (
      AjPFile file,
      size_t size,
      char* buffer
);

TypeNameRead/WriteDescription
AjPFilefileModifyFile object.
size_tsizeInputNumber of bytes to read from index file.
char*bufferOutputBuffer to read into
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinCharTrim

Reads a character string from a file and trims trailing spaces

Prototype

size_t ajReadbinCharTrim (
      AjPFile file,
      size_t size,
      char* buffer
);

TypeNameRead/WriteDescription
AjPFilefileModifyFile object.
size_tsizeInputNumber of bytes to read from index file.
char*bufferOutputBuffer to read into
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinInt

Binary read of an unsigned integer from an input file object using the C 'fread' function. Converts from little-endian.

Prototype

size_t ajReadbinInt (
      AjPFile file,
      ajint* Pi
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajint*PiOutputInteger value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinIntEndian

Binary read of an unsigned integer from an input file object using the C 'fread' function. Converts from big-endian.

Prototype

size_t ajReadbinIntEndian (
      AjPFile file,
      ajint* Pi
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajint*PiOutputInteger value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinIntLocal

Binary read of an unsigned integer from an input file object using the C 'fread' function. No conversion (assumes integer was written on the same system).

Prototype

size_t ajReadbinIntLocal (
      AjPFile file,
      ajint* Pi
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajint*PiOutputInteger value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinInt2

Binary read of a 2 byte integer from an input file object using the C 'fread' function. Converts from little-endian.

Prototype

size_t ajReadbinInt2 (
      AjPFile file,
      ajshort* Pi2
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajshort*Pi2OutputInteger value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinInt2Endian

Binary read of an unsigned integer from an input file object using the C 'fread' function. Converts from big-endian.

Prototype

size_t ajReadbinInt2Endian (
      AjPFile file,
      ajshort* Pi2
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajshort*Pi2OutputInteger value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinInt2Local

Binary read of an unsigned integer from an input file object using the C 'fread' function. No conversion (assumes integer was written on the same system).

Prototype

size_t ajReadbinInt2Local (
      AjPFile file,
      ajshort* Pi2
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajshort*Pi2OutputInteger value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinInt4

Binary read of a 4 byte integer from an input file object using the C 'fread' function.

Prototype

size_t ajReadbinInt4 (
      AjPFile file,
      ajint* Pi4
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajint*Pi4OutputInteger value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinInt4Endian

Binary read of an unsigned integer from an input file object using the C 'fread' function. Converts from big-endian.

Prototype

size_t ajReadbinInt4Endian (
      AjPFile file,
      ajint* Pi4
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajint*Pi4OutputInteger value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinInt4Local

Binary read of an unsigned integer from an input file object using the C 'fread' function. No conversion (assumes integer was written on the same system).

Prototype

size_t ajReadbinInt4Local (
      AjPFile file,
      ajint* Pi4
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajint*Pi4OutputInteger value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinInt8

Binary read of an 8 byte integer from an input file object using the C 'fread' function. Converts from little-endian.

Prototype

size_t ajReadbinInt8 (
      AjPFile file,
      ajlong* Pi8
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajlong*Pi8OutputInteger value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinInt8Endian

Binary read of an unsigned integer from an input file object using the C 'fread' function. Converts from big-endian.

Prototype

size_t ajReadbinInt8Endian (
      AjPFile file,
      ajlong* Pi8
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajlong*Pi8OutputInteger value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinInt8Local

Binary read of an unsigned integer from an input file object using the C 'fread' function. No conversion (assumes integer was written on the same system).

Prototype

size_t ajReadbinInt8Local (
      AjPFile file,
      ajlong* Pi8
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajlong*Pi8OutputInteger value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinUint

Binary read of an unsigned integer from an input file object using the C 'fread' function.

Prototype

size_t ajReadbinUint (
      AjPFile file,
      ajuint* Pu
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajuint*PuOutputUnsigned integer value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinUintEndian

Binary read of an unsigned integer from an input file object using the C 'fread' function. Converts from big-endian.

Prototype

size_t ajReadbinUintEndian (
      AjPFile file,
      ajuint* Pu
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajuint*PuOutputUnsigned integer value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinUintLocal

Binary read of an unsigned integer from an input file object using the C 'fread' function. No conversion (assumes integer was written on the same system).

Prototype

size_t ajReadbinUintLocal (
      AjPFile file,
      ajuint* Pu
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajuint*PuOutputUnsigned integer value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinUint2

Binary read of an unsigned integer from an input file object using the C 'fread' function. Converts from little-endian.

Prototype

size_t ajReadbinUint2 (
      AjPFile file,
      ajushort* Pu2
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajushort*Pu2OutputUnsigned integer value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinUint2Endian

Binary read of an unsigned integer from an input file object using the C 'fread' function. Converts from big-endian.

Prototype

size_t ajReadbinUint2Endian (
      AjPFile file,
      ajushort* Pu2
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajushort*Pu2OutputUnsigned integer value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinUint2Local

Binary read of an unsigned integer from an input file object using the C 'fread' function. No conversion (assumes integer was written on the same system).

Prototype

size_t ajReadbinUint2Local (
      AjPFile file,
      ajushort* Pu2
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajushort*Pu2OutputUnsigned integer value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinUint4

Binary read of an unsigned integer from an input file object using the C 'fread' function. Converts from little-endian.

Prototype

size_t ajReadbinUint4 (
      AjPFile file,
      ajuint* Pu4
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajuint*Pu4OutputUnsigned integer value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinUint4Endian

Binary read of an unsigned integer from an input file object using the C 'fread' function. Converts from a big-endian.

Prototype

size_t ajReadbinUint4Endian (
      AjPFile file,
      ajuint* Pu4
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajuint*Pu4OutputUnsigned integer value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinUint4Local

Binary read of an unsigned integer from an input file object using the C 'fread' function. No conversion (assumes integer was written on the same system).

Prototype

size_t ajReadbinUint4Local (
      AjPFile file,
      ajuint* Pu4
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajuint*Pu4OutputUnsigned integer value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinUint8

Binary read of an unsigned integer from an input file object using the C 'fread' function. Converts from little-endian.

Prototype

size_t ajReadbinUint8 (
      AjPFile file,
      ajulong* Pu8
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajulong*Pu8OutputUnsigned long integer value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinUint8Endian

Binary read of an unsigned integer from an input file object using the C 'fread' function. Converts from big-endian.

Prototype

size_t ajReadbinUint8Endian (
      AjPFile file,
      ajulong* Pu8
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajulong*Pu8OutputUnsigned long integer value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


Function ajReadbinUint8Local

Binary read of an unsigned integer from an input file object using the C 'fread' function. No conversion (assumes integer was written on the same system).

Prototype

size_t ajReadbinUint8Local (
      AjPFile file,
      ajulong* Pu8
);

TypeNameRead/WriteDescription
AjPFilefileModifyInput file.
ajulong*Pu8OutputUnsigned long integer value
size_t RETURNNumber of bytes read.

From EMBOSS 6.0.0


AjPFile: file binary write operations

Functions:
ajWritebinBinaryBinary write to an output file object using the C 'fwrite' function.
ajWritebinByteWrites a single byte to a binary file
ajWritebinCharWrites a text string to a binary file
ajWritebinInt2Writes a 2 byte integer to a binary file, with the correct byte orientation
ajWritebinInt4Writes a 4 byte integer to a binary file, with the correct byte orientation
ajWritebinInt8Writes an 8 byte long to a binary file, with the correct byte orientation
ajWritebinNewlineWrites newline character(s) to a file
ajWritebinStrWrites a string to a binary file


Function ajWritebinBinary

Binary write to an output file object using the C 'fwrite' function.

Prototype

size_t ajWritebinBinary (
      AjPFile file,
      size_t count,
      size_t size,
      const void* buffer
);

TypeNameRead/WriteDescription
AjPFilefileModifyOutput file.
size_tcountInputNumber of elements to write.
size_tsizeInputNumber of bytes per element.
const void*bufferInputBuffer for output.
size_t RETURNReturn value from 'fwrite'

From EMBOSS 6.0.0


Function ajWritebinByte

Writes a single byte to a binary file

Prototype

size_t ajWritebinByte (
      AjPFile file,
      char ch
);

TypeNameRead/WriteDescription
AjPFilefileModifyOutput file
charchInputCharacter
size_t RETURNReturn value from fwrite

From EMBOSS 6.0.0


Function ajWritebinChar

Writes a text string to a binary file

Prototype

size_t ajWritebinChar (
      AjPFile file,
      const char* txt,
      size_t len
);

TypeNameRead/WriteDescription
AjPFilefileModifyOutput file
const char*txtInputText string
size_tlenInputLength (padded) to write to the file
size_t RETURNReturn value from fwrite

From EMBOSS 6.0.0


Function ajWritebinInt2

Writes a 2 byte integer to a binary file, with the correct byte orientation

Prototype

size_t ajWritebinInt2 (
      AjPFile file,
      ajshort i2
);

TypeNameRead/WriteDescription
AjPFilefileModifyOutput file
ajshorti2InputInteger
size_t RETURNReturn value from fwrite

From EMBOSS 6.0.0


Function ajWritebinInt4

Writes a 4 byte integer to a binary file, with the correct byte orientation

Prototype

size_t ajWritebinInt4 (
      AjPFile file,
      ajint i4
);

TypeNameRead/WriteDescription
AjPFilefileModifyOutput file
ajinti4InputInteger
size_t RETURNReturn value from fwrite

From EMBOSS 6.0.0


Function ajWritebinInt8

Writes an 8 byte long to a binary file, with the correct byte orientation

Prototype

size_t ajWritebinInt8 (
      AjPFile file,
      ajlong i8
);

TypeNameRead/WriteDescription
AjPFilefileModifyOutput file
ajlongi8InputInteger
size_t RETURNReturn value from fwrite

From EMBOSS 6.0.0


Function ajWritebinNewline

Writes newline character(s) to a file

Prototype

size_t ajWritebinNewline (
      AjPFile file
);

TypeNameRead/WriteDescription
AjPFilefileModifyOutput file
size_t RETURNReturn value from fwrite

From EMBOSS 6.2.0


Function ajWritebinStr

Writes a string to a binary file

Prototype

size_t ajWritebinStr (
      AjPFile file,
      const AjPStr str,
      size_t len
);

TypeNameRead/WriteDescription
AjPFilefileModifyOutput file
const AjPStrstrInputString
size_tlenInputLength (padded) to use in the file
size_t RETURNReturn value from fwrite

From EMBOSS 6.0.0


AjPFile: file line write operations

Functions:
ajWritelineWrites a string to a file, including any newline characters
ajWritelineNewlineWrites a string to a file, including any newline characters
ajWritelineSpaceWrites a string to a file, with a leading space


Function ajWriteline

Writes a string to a file, including any newline characters

Prototype

AjBool ajWriteline (
      AjPFile file,
      const AjPStr line
);

TypeNameRead/WriteDescription
AjPFilefileModifyOutput file
const AjPStrlineInputString to be written
AjBool RETURNTrue on success

From EMBOSS 6.0.0


Function ajWritelineNewline

Writes a string to a file, including any newline characters

Prototype

AjBool ajWritelineNewline (
      AjPFile file,
      const AjPStr line
);

TypeNameRead/WriteDescription
AjPFilefileModifyOutput file
const AjPStrlineInputString to be written
AjBool RETURNTrue on success

From EMBOSS 6.2.0


Function ajWritelineSpace

Writes a string to a file, with a leading space

Prototype

AjBool ajWritelineSpace (
      AjPFile file,
      const AjPStr line
);

TypeNameRead/WriteDescription
AjPFilefileModifyOutput file
const AjPStrlineInputString to be written
AjBool RETURNTrue on success

From EMBOSS 6.2.0


Datatype: AjPFilebuff

Function is for manipulating buffered input files and returns or takes at least one AjPFilebuff argument.

Sections:
buffered file line read operationsInput


AjPFilebuff: buffered file line read operations

Functions:
ajBuffreadLineReads a line from a buffered file. If the buffer has data, reads from the buffer. If the buffer is exhausted, reads from the file. If the file is exhausted, sets end of file and returns. If end of file was already set, looks for another file to open.
ajBuffreadLinePosReads a line from a buffered file. If the buffer has data, reads from the buffer. If the buffer is exhausted, reads from the file. If the file is exhausted, sets end of file and returns. If end of file was already set, looks for another file to open.
ajBuffreadLinePosStoreReads a line from a buffered file. Also appends the line to a given string if the append flag is true. A double NULL character is added afterwards. If the buffer has data, reads from the buffer. If the buffer is exhausted, reads from the file. If the file is exhausted, sets end of file and returns. If end of file was already set, looks for another file to open.
ajBuffreadLineStoreReads a line from a buffered file. Also appends the line to a given string if the append flag is true. A double NULL character is added afterwards. If the buffer has data, reads from the buffer. If the buffer is exhausted, reads from the file. If the file is exhausted, sets end of file and returns. If end of file was already set, looks for another file to open.
ajBuffreadLineTrimReads a line from a buffered file. If the buffer has data, reads from the buffer. If the buffer is exhausted, reads from the file. If the file is exhausted, sets end of file and returns. If end of file was already set, looks for another file to open.


Function ajBuffreadLine

Reads a line from a buffered file. If the buffer has data, reads from the buffer. If the buffer is exhausted, reads from the file. If the file is exhausted, sets end of file and returns. If end of file was already set, looks for another file to open.

Prototype

AjBool ajBuffreadLine (
      AjPFilebuff buff,
      AjPStr* Pdest
);

TypeNameRead/WriteDescription
AjPFilebuffbuffModifyBuffered input file.
AjPStr*PdestOutputBuffer to hold results.
AjBool RETURNajTrue if data was read.

From EMBOSS 6.0.0


Function ajBuffreadLinePos

Reads a line from a buffered file. If the buffer has data, reads from the buffer. If the buffer is exhausted, reads from the file. If the file is exhausted, sets end of file and returns. If end of file was already set, looks for another file to open.

Prototype

AjBool ajBuffreadLinePos (
      AjPFilebuff buff,
      AjPStr* Pdest,
      ajlong* Ppos
);

TypeNameRead/WriteDescription
AjPFilebuffbuffModifyBuffered input file.
AjPStr*PdestOutputBuffer to hold results.
ajlong*PposOutputFile position before the read.
AjBool RETURNajTrue if data was read.

From EMBOSS 6.0.0


Function ajBuffreadLinePosStore

Reads a line from a buffered file. Also appends the line to a given string if the append flag is true. A double NULL character is added afterwards. If the buffer has data, reads from the buffer. If the buffer is exhausted, reads from the file. If the file is exhausted, sets end of file and returns. If end of file was already set, looks for another file to open.

Prototype

AjBool ajBuffreadLinePosStore (
      AjPFilebuff buff,
      AjPStr* Pdest,
      ajlong* Ppos,
      AjBool dostore,
      AjPStr* Pstore
);

TypeNameRead/WriteDescription
AjPFilebuffbuffModifyBuffered input file.
AjPStr*PdestOutputBuffer to hold results.
ajlong*PposOutputFile position before the read.
AjBooldostoreInputappend if true
AjPStr*PstoreOutputstring to append to
AjBool RETURNajTrue if data was read.

From EMBOSS 6.0.0


Function ajBuffreadLineStore

Reads a line from a buffered file. Also appends the line to a given string if the append flag is true. A double NULL character is added afterwards. If the buffer has data, reads from the buffer. If the buffer is exhausted, reads from the file. If the file is exhausted, sets end of file and returns. If end of file was already set, looks for another file to open.

Prototype

AjBool ajBuffreadLineStore (
      AjPFilebuff buff,
      AjPStr* Pdest,
      AjBool dostore,
      AjPStr* Pstore
);

TypeNameRead/WriteDescription
AjPFilebuffbuffModifyBuffered input file.
AjPStr*PdestOutputBuffer to hold results.
AjBooldostoreInputappend if true
AjPStr*PstoreOutputstring to append to
AjBool RETURNajTrue if data was read.

From EMBOSS 6.0.0


Function ajBuffreadLineTrim

Reads a line from a buffered file. If the buffer has data, reads from the buffer. If the buffer is exhausted, reads from the file. If the file is exhausted, sets end of file and returns. If end of file was already set, looks for another file to open.

Prototype

AjBool ajBuffreadLineTrim (
      AjPFilebuff buff,
      AjPStr* Pdest
);

TypeNameRead/WriteDescription
AjPFilebuffbuffModifyBuffered input file.
AjPStr*PdestOutputBuffer to hold results.
AjBool RETURNajTrue if data was read.

From EMBOSS 6.0.0