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.
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 bulls horns on the sensible Benedicks head?
Claudio. Yes, and text underneath, Here dwells Benedick, the married man?”
—William Shakespeare (15641616)
“A common and natural result of an undue respect for law is, that you may see a file of soldiers, colonel, captain, corporal, privates, powder-monkeys, and all, marching in admirable order over hill and dale to the wars, against their wills, ay, against their common sense and consciences, which makes it very steep marching indeed, and produces a palpitation of the heart.”
—Henry David Thoreau (18171862)
“What drivel it all is!... A string of words called religion. Another string of words called philosophy. Half a dozen other strings called political ideals. And all the words either ambiguous or meaningless. And people getting so excited about them theyll murder their neighbours for using a word they dont happen to like. A word that probably doesnt mean as much as a good belch. Just a noise without even the excuse of gas on the stomach.”
—Aldous Huxley (18941963)