String (computer Science) - Text File Strings

Text File Strings

In computer readable text files, for example programming language source files or configuration files, strings can be represented. The NUL byte is normally not used as terminator since that does not correspond to the ASCII text standard, and the length is usually not stored, since the file should be human editable without bugs.

Two common representations are:

  • Surrounded by quotation marks (ASCII 22h), used by most programming languages. To be able to include quotation marks, newline characters etc., escape sequences are often available, usually using the backslash character (ASCII 5Ch).
  • Terminated by a newline sequence, for example in Windows INI files.
See also: String literal

Read more about this topic:  String (computer Science)

Famous quotes containing the words text, file and/or strings:

    What our eyes behold may well be the text of life but one’s meditations on the text and the disclosures of these meditations are no less a part of the structure of reality.
    Wallace Stevens (1879–1955)

    I have been a soreheaded occupant of a file drawer labeled “Science Fiction” ... and I would like out, particularly since so many serious critics regularly mistake the drawer for a urinal.
    Kurt Vonnegut, Jr. (b. 1922)

    Death cut the strings that gave me life,
    And handed me to Sorrow,
    The only kind of middle wife
    My folks could beg or borrow.
    Countee Cullen (1903–1946)