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:

    If ever I should condescend to prose,
    I’ll write poetical commandments, which
    Shall supersede beyond all doubt all those
    That went before; in these I shall enrich
    My text with many things that no one knows,
    And carry precept to the highest pitch:
    I’ll call the work ‘Longinus o’er a Bottle,
    Or, Every Poet his own Aristotle.’
    George Gordon Noel Byron (1788–1824)

    While waiting to get married, several forms of employment were acceptable. Teaching kindergarten was for those girls who stayed in school four years. The rest were secretaries, typists, file clerks, or receptionists in insurance firms or banks, preferably those owned or run by the family, but respectable enough if the boss was an upstanding Christian member of the community.
    Barbara Howar (b. 1934)

    How have you left the ancient love
    That bards of old enjoyed in you!
    The languid strings do scarcely move!
    The sound is forced, the notes are few!
    William Blake (1757–1827)