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:

    Don Pedro. But when shall we set the savage bull’s horns on the sensible Benedick’s head?
    Claudio. Yes, and text underneath, “Here dwells Benedick, the married man?”
    William Shakespeare (1564–1616)

    Probably nothing in the experience of the rank and file of workers causes more bitterness and envy than the realization which comes sooner or later to many of them that they are “stuck” and can go no further.
    Mary Barnett Gilson (1877–?)

    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)