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:

    I would define the poetic effect as the capacity that a text displays for continuing to generate different readings, without ever being completely consumed.
    Umberto Eco (b. 1932)

    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)

    Until, accustomed to disappointments, you can let yourself rule and be ruled by these strings or emanations that connect everything together, you haven’t fully exorcised the demon of doubt that sets you in motion like a rocking horse that cannot stop rocking.
    John Ashbery (b. 1927)