I agree that this should be merged with plain text. I think the result should be named "plain text", but the contents should mostly or completely come from th
| This It is of interest to the following WikiProjects: | |||||||||||
| |||||||||||
| This article is written in British English, which has its own spelling conventions (colour, travelled, centre, defence, artefact, analyse) and some terms may be different or absent from other varieties of English. According to the relevant style guide, this should not be changed without broad consensus. |
I agree that this should be merged with plain text. I think the result should be named "plain text", but the contents should mostly or completely come from this page text file. --NealMcB 17:30, 25 April 2006 (UTC)
I support the merge; the concepts are close enough that the distinction can be explained within one article. --Gerry Ashton 02:35, 1 August 2006 (UTC)
I object to the merge. While there is a degree of overlap in the terms, they are distinct enough to warrant separate articles. A text file can be plain text, RTF or HTML for example. Plain text files are text files but not all text files are plain text. Dread Lord CyberSkull ✎☠ 12:21, 10 August 2006 (UTC)
I'm going to take the merge tags off, as there seems to be more opposition to the merger than agreement and there's an awful backlog of articles to be merged. Let's get this off the list. Jaye 13:55, 24 August 2006 (UTC)
.txt article says around the same informations. 16@r 00:05, 24 October 2006 (UTC)
I also object. A text file can contain plain text, but they're two very different entities. To agree with an above poster, a text file can contain plain text or it can contain RTF or HTML. Also, from the plain text article, it is noted that plain text is only usually stored in files. It don't have to be. Alex Peppe 00:31, 2 January 2007 (UTC)
I also object. Plaintext may be transmitted through a network connection or held in memory. A text file refers to plaintext *stored* on a disk or tape. --Nil0lab 03:10, 24 March 2007 (UTC)
I disagree. A protocol using plain text is different to a text file (a protocol doesn't necessarily transfer files). 83.254.215.231 (talk) 12:21, 21 January 2008 (UTC)
Hi, I don't think you should move binary (software) to binary (computing) because it actually discusses binaries, ie compiled applications, whereas binary (computing) sounds like it's going to discuss how computers use 1s and 0s... Evercat 00:35 2 Jun 2003 (UTC)
No, actually I think we need a broader article. After knowing plain text has more about the characterstic of binary file, we may want to have a combined article probably called binary and text file or something. Any thought? -- Taku 00:55 2 Jun 2003 (UTC)
-- Wapcaplet 01:39 2 Jun 2003 (UTC)
Hi. Um, I have a slight problem with this article because it is rather Unix-centric. In Unix systems, (traditionally), there was a very clear distinction between text files and binary files primarily owing to the ASCII standard, ie: by (unix) definition, a file couldn't be a text file if it contained any character with a byte value over 127. Under Macintosh, (and Windows???) systems, an extended, 256 character encoding was always used. It was completely accurate on a Macintosh to refer to a file as text so long as it was human readable. Today, the point is perhaps mostly moot, as Mac OS X is now Unix-based, and Unicode has become the standard, but I think it still confuses Mac and Windows people today when a Unixer talks about text files as being different from, say, a file that makes use of curly quotes or other high-bit characters in a particular encoding. AdmN 18:23, 30 Aug 2004 (UTC)
Text files → Text file – {use singular form as per std}
Done, for standardization. Rd232 talk 22:17, 18 February 2006 (UTC)
The article defines text files as approximately plain text, but this is essentially wrong. A text file contains text that is intended for human information transfer as opposed to binary or data files that for most parts will remain unknown for the ordinary user. This means that
The article must be enhanced to treat structured text beside plain/flat text. Said: Rursus ☺ ★ 19:50, 25 June 2007 (UTC)
Yihiheee!! (Giggering evilly, twirling the moustaches)! I simply rewrote the intro to refer to human text information files. I know there's a conflict between three different interpretations of text files:
So in essence my change was too drastic, and if also the original meaning is reinserted beside mine, I will be happy too. Said: Rursus ☺ ★ 20:59, 25 June 2007 (UTC)
There is some seriously dubious content going into this article, and it is consequently tagged for re-write. It may be suitable to revert this to a previous version, but something needs to be done.
For example:
A text file is a file intended for humans to read, so it mainly contains character data that can be processed to display a readable text in any natural language.
Where does this definition come from? This whole "intended for humans" definition sounds vague, unencyclopedic and pointless. Assembly programmers are humans also, blind people are humans also; and what with the "red on green" coloring in the article body? Can someone show where this formatting is recommended under WP style guidelines?
Please, have some citations and reliable sources nearby when making substantial modifications to this article. They are desperately needed. dr.ef.tymac 23:57, 25 June 2007 (UTC)
Please add everything you find here (!):
{{cite web}}: Cite has empty unknown parameter: |1= (help) - source: tertiary (3), confusion on def'on'usage and on def'on'tech-criteria;{{cite web}}: Cite has empty unknown parameter: |1= (help) - source: primary? (1?), only uses def'on'tech-criteria, and another, for me unknown, meaning;{{cite web}}: Cite has empty unknown parameter: |1= (help) - source: tertiary (3), very vaguely distinguishes between files containing text, and files only using ASCII (obsolete, but generalize to any character encoding);{{cite web}}: Cite has empty unknown parameter: |1= (help) - source: secondary (2), only uses the "contains only alphanumeric characters" definition (which benevolently must also be interpreted to include space, parentheses and interpunction);{{cite web}}: Cite has empty unknown parameter: |1= (help) - source: tertiary (3), uses a defn declaring only ASCII to be used, including "formatting instructions";{{cite web}}: Cite has empty unknown parameter: |1= (help) - source: primary (1), says that text files don't contain "invisible" control characters; contrasts with rich text, binary file, flat file.Sample usages:
"MAVID file input description". {{cite web}}: Cite has empty unknown parameter: |1= (help)
Kidisk
//musikk —Preceding unsigned comment added by 88.91.88.113 (talk) 21:05, 17 July 2010 (UTC)
I was distracted by the criticism in the document, eg. citation needed, vague... I'm lazy right now, maybe when I get home I will fix the criticisms.
--146.145.210.126 12:55, 20 July 2007 (UTC)
The current image accompanying this article should be replaced with something non-stupid. —Preceding unsigned comment added by Radishes (talk • contribs) 2007-08-03 20:59:26
Sourced or not, this is nonsense:
"text files are intended to be viewed or interpreted by application software, whereas binary files are executable by the operating system."
Just to prove my point: Blender .blend files, MS Word DOC files, JPG, PNG, GIF, TIFF, OGG, MP3, WAV, AIFF, etc are all examples of "binary files" which are "intended to be viewed or interpreted by application software".
Meanwhile, MS-DOS .bat files, Unix shell scripts, and programs written in Perl, Python, BASIC, and other interpreted languages are examples of "text files" which are "executable by the operating system". The footnote about "source code" doesn't alter this fact: compilation or interpretation often happens in RAM and often no binary file is created in the process.
So, this is a totally wrong distinction to make.
Also, note [4] is NOT a source for this statement, it's an explanatory footnote.
What distinguishes "text files" from "binary files" is that the byte stream in a text file has a simple, unambiguous mapping to a sequence of characters which may be rendered as human-readable glyphs, arranged in a simple human-readable form.
We do use application software to do this rendering, but that is equally true of many binary files, so it is not a distinctive property of text files. The definition of text file is also tightly linked with the concept of a "text editor", which is an application specifically designed to manipulate text files. Indeed, a good definition of a text file is "a file which may be easily processed using a text editor".
"Plain text", though it probably has more than one distinct meaning (and probably therefore deserves a disambiguation?), in this context, means a text file which furthermore does not contain special formatting instructions (unlike XML or HTML, for example), usually called "markup". Thus, "plain text" contains little or no structure (this is fuzzy because paragraph breaks, newline characters, and setting headings off by empty lines can all be thought of as exceptions).
The term "text file" actually dates from a time when it was essentially synonymous with "ASCII encoded file", but the rise of other encodings, and particularly Unicode has stretched the meaning by making what we think of as "text files" more complex and less unambiguous. But even so, there is a clear distinction between a straightforward representation of text and a rich-text or page-description language which contains complex formatting information. Digitante (talk) 14:32, 11 February 2008 (UTC)
The article says:
"The end of a text file is often denoted by placing one or more special characters, known as an end-of-file marker, after the last line in a text file."
This is incorrect information supported by a [weasel word]. Most file systems don't use the concept of "end-of-file" marker, and most systems definitely don't use a special marker for the last character in a text file.
It is arguable, on the other hand, wheter the last line of a text file is or isn't ended by a newline marker (whichever it is, CRLF, CR or LF). But the newline marker is definitely not a marker for the end of the file.
-- Rgiusti (talk) 15:19, 9 August 2012 (UTC)
"According to Unicode Microsoft protocol for txt files use UTF-8." I cannot parse this sentence. Can someone who knows what it tries to say, make it meaningful? — Preceding unsigned comment added by 94.224.53.151 (talk • contribs) 21:02, 7 August 2013 (UTC)
Most Windows text files use "ANSI", "OEM", "Unicode" or "UTF-8" encoding. What Windows terminology calls "ANSI encodings" are usually single-byte ISO/IEC 8859 encodings (i.e. ANSI in the Microsoft Notepad menus is really "System Code Page", non-Unicode, legacy encoding), except for in locales such as Chinese, Japanese and Korean that require double-byte character sets. ANSI encodings were traditionally used as default system locales within Windows, before the transition to Unicode. By contrast, OEM encodings, also known as DOS code pages, were defined by IBM for use in the original IBM PC text mode display system. They typically include graphical and line-drawing characters common in DOS applications. "Unicode"-encoded Windows text files contain text in UTF-16 Unicode Transformation Format. Such files normally begin with Byte Order Mark (BOM), which communicates the endianness of the file content. Although UTF-8 does not suffer from endianness problems, many Windows programs (i.e. Notepad) prepend the contents of UTF-8-encoded files with BOM,[1] to differentiate UTF-8 encoding from other 8-bit encodings.[2]
References
Yes, UTF-8 can contain a BOM. However, it makes no difference as to the endianness of the byte stream. UTF-8 always has the same byte order. An initial BOM is only used as a signature — an indication that an otherwise unmarked text file is in UTF-8. Note that some recipients of UTF-8 encoded data do not expect a BOM. Where UTF-8 is used transparently in 8-bit environments, the use of a BOM will interfere with any protocol or file format that expects specific ASCII characters at the beginning, such as the use of "#!" of at the beginning of Unix shell scripts.
I happened to notice today a peculiar dogma or "double-standard" that is being implicitly asserted in this article with regard to textual/string representations. On the one hand, a "modern" OS is said to no longer require end-of-file markers, seemingly equating progress to this feature. However, on the other hand, lines themselves are still typically ended with new line character(s), so it would seem that this "anachronism" survives at the line level of detail. To my knowledge, this would be due to the difference in the abstractions themselves. File lengths, being the domain of the OS, are apparently more "modern" than the file formats, which are effectively invisible to the OS.
All in all, to me, this seems to presume a bit of glibness within the article in recognizing the trifling optimization at the OS-level, while ignoring the bigger potential optimization at the line-level. I'm not sure what to make of this, except that I find this observation interesting, and would prefer that the article not be so dogmatic. 75.139.254.117 (talk) 04:22, 20 November 2016 (UTC)
There is a move discussion in progress on Talk:CTXT (media) which affects this page. Please participate on that page and not in this talk page section. Thank you. —RMCD bot 10:45, 13 May 2018 (UTC)
I have serious issues with the article. It generally assumes that a text file is intended for display. That's just not true. Text files are used for a variety of reasons, even when the information is NOT intended for display (or printing). The article claims the file "is" composed of characters. Not really, the file is composed of binary (virtually always) data which "should be" interpreted as computer characters. (Where computer characters include letters (graphemes), digits, punctuation marks, and control characters - what the Unicode Consortium calls 'code points'.) Text files are used generally because they can be easily understood by humans, not because they will be. That is, they might be used to encode information to ensure the quality of the information, or may be used because the interpretation of the contents is straightforward, simple, and (assuming the reader is literate in the underlying language) direct (should that ever be necessary). The fact that most browsers and word processors can easily display the contents of a text file (due to historical precedent) is another reason, but we have to keep in mind that even the simplest display requires a whole lot of computer code to take the binary bits on a magnetic film or charges on a silicon chip and create dots of light on a computer monitor from them. Is that task substantially easier than interpreting a binary file? Not necessarily, in fact interpretation of a binary file may be easier and faster for the computer/electronics than display of a text file. The article is written as if the author believes that these characters actually exist in the file. While a simple way to look at it, and if the audience is composed of middle-school students, it might be an optimum way, perhaps some acknowledgement of the reality wouldn't be too difficult to keep in mind.72.16.99.93 (talk) 08:16, 25 November 2018 (UTC)
Some people here are trying to define what a "text file" actually is, but they struggle because they don't acknowledge that a single file can be more than one thing. I have a certain file on my computer:
When I say that it is a "text file," What I mean is, it makes sense, under some circumstances, to open the file in a "plain text" editor (a.k.a., "programmer's editor"). The Inkscape document format is defined as annotated SVG, SVG is defined as an XML application, and XML is defined as plain text that obeys certain syntax rules. That's four distinct levels of abstraction, and that's without even broaching the subject of what the document looks like when rendered as SVG.
I also have an .xhtml file. That's even more fun to describe because it is text on more than one level: It's text, represented as XHTML, which is a form of XML, which is represented as plain text. 173.75.33.51 (talk) 19:30, 31 August 2020 (UTC)
Guy Harris
The article refers to a "text file", which is any file that represents text. However, the infobox refers to the plain text file type, which semantically represents text files containing plain text. This is obvious in the MIME type, which the infobox says is "text/plain", even though the scope of the actual article is about all text files, which includes any "text/*" file. PBZE (talk) 18:30, 28 November 2021 (UTC)
All computer files are binary – EVEN “TEXT” FILES. As stored on the hard-drive or in memory “TEXT” files (such as hello.txt or mydata.json) consist only of bits (0’s and 1’s). The reason we see text in them and can read them is that we typically open them in applications such as notepad, Word, etc... that can display the bits as text. The application makes the file readable. Without these and similar applications, a “TEXT” file (such as hello.txt or mydata.json) would be indistinguishable to the human eye from binary data; they would be unreadable. — Preceding unsigned comment added by 131.119.15.14 (talk) 18:13, 8 March 2022 (UTC)
A binary file is a computer file that is not a text file. The term "binary file" is often used as a term meaning "non-text file". Many binary file formats contain parts that can be interpreted as text; for example, some computer document files containing formatted text, such as older Microsoft Word document files, contain the text of the document but also contain formatting information in binary form.
In which programming language is made or does it have any source code documentation about it? 178.77.2.35 (talk) 20:07, 15 November 2024 (UTC)
In which programming language is made or does it have any source code documentation about it?In what programming languages is what made? Text files? Most if not all programming languages can write out text files, and there are many applications for Windows that let you edit text files, such as Notepad.
According to the website source: Introduction to Uniform Type Identifiers Overview is it in these programming languages are made the text file formats1) That's an Apple page, so it's unlikely to be relevant to Windows. 2) That document doesn't say anything like what you claim it does. Guy Harris (talk) 22:04, 26 July 2025 (UTC)
WRT "A text file (sometimes spelled textfile; an old alternative name is flat file)" ... There are various articles that include a spelling without a space (filesystem, filename, ...) as an alternate spelling/term. But, I find that distracting. I think we all know what "text file" and "textfile" are the same thing so we don't need to mention that. As for flat file I think that's a significantly different thing than text file and should definitely be removed. Stevebroshar (talk) 13:48, 3 July 2025 (UTC)
WRT "Because of their simplicity, text files are commonly used for storage of information. They avoid some of the problems encountered with other file formats, such as endianness, padding bytes..."
I'd say that a text file is more complicated that a binary (non-text) file. It's more complicated for the computer to deal with although may be less complicated for the human to deal with. It is true that some issues (such as word size, endianness, padding bytes) are alleviated by using text. But, not bc it's simpler. It's bc it includes an additional layer of encoding than the average non-text file ... IOW more complicated! Stevebroshar (talk) 13:55, 3 July 2025 (UTC)
WRT "On most operating systems, the name text file refers to a file format that allows only plain text content with very little formatting (e.g., no bold or italic types). Such files can be viewed and edited on text terminals or in simple text editors. Text files usually have the MIME type text/plain, usually with additional information indicating an encoding."
I wouldn't call "text file" a name. It's a term, a phrase, a categorization. ... I wouldn't call "text file" a file format. File format usually implies much more than text vs. non-text. ... Text file does not imply anything about formatting! Even if it did, I don't see how mentioning bold and italics adds value since they are not what I'd call formatting. They are style. ... Text terminal? isn't that a term from the 1970s? Who uses that today or even knows what it means? ... MIME type is used with internet transfer and in many other contexts, MIME type does not apply so, no, text files do not usually have MIME type text/plain even though they do in the context of internet transfer. Context matters. Stevebroshar (talk) 14:06, 3 July 2025 (UTC)
WRT "A text file ... is a kind of computer file that is structured as a sequence of lines of electronic text."
Yeah, but misses the point. And who uses the term 'electronic text'? So awkward. A text file is a file that encodes information per a character encoding.
WRT "A text file exists stored as data within a computer file system."
Huh? So awkward. Yes. A text file is stored in a file system. Why so many words? What is the rest about? A text file is stored; it is data; it is in a file system. I think all that is covered by computer file. Stevebroshar (talk) 14:13, 3 July 2025 (UTC)
https://economics-portal.andrafarm.com/IT/en/2899-2783/plain-text_4368_economics-portal-andrafarm.html, the website uses the same exact words (and pictures)Wikiediter2029 (talk) 14:40, 20 September 2025 (UTC)
what is with this URL link website: RPG IV programming language, IFS stuff and IBM iSeries/400 server PC Computer ~2025-42938-39 (talk) 20:34, 25 December 2025 (UTC)
As I mentioned at the start of this eBook, a stream file is simply a long string of bytes. How that string of bytes is used is up to the software that reads and writes the file.
One of the most common ways of organizing the data in a stream file is called a "text file." Text files are made up of human-readable text organized into variable-length records called "lines." Each line is intended to be printed on a single row of a display or a page of paper.
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.