7. AsciiFile

7.1. Summary of Module Globals

List of Global Functions

List of Global Variables

    7.2. Global Functions

    7.2.1. AppendLine

    Appends a new line at the bottom

    Function parameters

    • map& file

    • list entry

    Return value

    • void

    7.2.2. ChangeLineField

    Changes the record in the file defined by row and column

    Function parameters

    • map& file

    • integer line

    • integer field

    • string entry

    Return value

    • void

    7.2.3. FindLineField

    Returns the list of rows where matches searched string in the defined column

    Function parameters

    • map file

    • integer field

    • string content

    Return value

    • list<integer> - matching rows

    7.2.4. GetLine

    Returns map of wanted line

    Function parameters

    • map& file

    • integer line

    Return value

    • map - of wanted line

    7.2.5. GetLines

    Returns map of wanted lines

    Function parameters

    • map& file

    • list<integer> lines

    Return value

    • map<integer, map> - with wanted lines

    7.2.6. NumLines

    Returns count of lines in file

    Function parameters

    • map file

    Return value

    • integer - count of lines

    7.2.7. ReadFile

    Reads the file from the disk

    Function parameters

    • map& file

    • string pathname

    Return value

    • void

    7.2.8. RemoveLines

    Removes lines

    Function parameters

    • map& file

    • list<integer> lines

    Return value

    • void

    7.2.9. ReplaceLine

    Changes a complete line

    Function parameters

    • map& file

    • integer line

    • list<string> entry

    Return value

    • void

    7.2.10. RewriteFile

    Writes a content into the file

    Function parameters

    • map& file

    • string fpath

    Return value

    • void

    7.2.11. SetComment

    Sets the string how the comment starts

    Function parameters

    • map& file

    • string comment

    Return value

    • void

    7.2.12. SetDelimiter

    Sets the delimiter between the records on one line

    Function parameters

    • map& file

    • string delim

    Return value

    • void

    7.2.13. SetListWidth

    Sets the widths of records on one line

    Function parameters

    • map& file

    • list widths

    Return value

    • void

    7.3. Global Variables

    7.4. Module Requirements

    none