answersLogoWhite

0

A text file is a file containing human readable characters organized into records (lines) that are separated by the new-line character. The run-time library parses on this basis, and converts carriage-return/line-feed sequences to and from the new-line character as needed. (In a Windows/DOS environment.)

A binary file is a file containing any characters. There is no file based delimiting - all record distinctions are made by the program. (The exception to this is in the IBM (and other?) family of MainFrame computers where logical record sizes are declared in the DCB, and the file is not processed in stream mode.)

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

How do you distinguish between a text file and a binary file?

You can distinguish between binary and text files, and for the most part even identify what type of binary file, by using the "file" command. For example:~$ file unknownfileunknownfile: PNG image data, 155 x 155, 8-bit/color RGBA, non-interlacedThis tells you that the file is a PNG file by reading metadata and/or magic numbers in the file. When used on a text file, the command will return "ASCII text" or "Unicode text."


Which type of field is used to store picture in a table?

To store pictures in a table, a field of type "BLOB" (Binary Large Object) is typically used in databases. BLOB fields can hold large amounts of binary data, making them suitable for images, audio files, and other multimedia content. Alternatively, some databases allow storing image file paths or URLs in a "VARCHAR" or "TEXT" field, referencing the actual images stored elsewhere.


What is the difference between a compiler and a text editor?

An editor is just a program in which you write and edit the program. The compiler is used to compile the program, i.e., convert the program to machine understandable code. A development environment often combines the both into an intelligent application called the IDE or Integrated Development Environment.


What is the difference between binary file and executable file?

windows support 2 file formats 1.text file 2.binary file in a text file in windows , each line is teminated with a carriage reurn followed by a linefeed character .but when a file is read by a c prog in text mode,c library converts carriage reurn/ linefeed character both in to a single linefeed character. but in case of binary file ,the prog will see both carriage return & linefeed character


What is the main function of sysexe files?

You mean 'SYS.EXE'? It is used under MS-DOS to make a floppy bootable.

Related Questions

What are the different modes in C programming language?

In C programming language, there are three main modes: text mode, binary mode, and append mode. Text mode is used for reading and writing text files, binary mode is used for reading and writing binary files, and append mode is used for appending data to the end of a file.


What utility on Linux can be used to copy a file including text and executable program binary files?

The cp command does that.


What are the different modes available in C programming language and how can they be utilized effectively in a program?

In C programming language, the different modes available are text mode and binary mode. Text mode is used for reading and writing text files, while binary mode is used for reading and writing binary files. These modes can be utilized effectively in a program by choosing the appropriate mode based on the type of file being accessed. Text mode is useful for handling human-readable text files, while binary mode is more suitable for non-text files like images or executable programs. By selecting the right mode, programmers can ensure that data is read and written correctly according to the file's format.


What does the file extension b stand for?

.b is an extension for binary files mostly used by video game emulators... .b is also the extension for BASIC programming language source text files...


What does the term binary data mean?

Binary data means 0's and 1's. That is, information that can be transmitted across a network and is understood by a computer. It doesn't matter what the 0's and 1's actually represent -- that is a matter for the programs that use the data.In point of fact, all data is binary. However plain-text (ASCII or UNICODE) is regarded as non-binary because it requires no special handling to translate the individual character codes back into a human-readable form. Video, image and sound files are all examples of binary data, because the data requires special handling to present the output in a form that humans can understand. Some binary data is never intended for humans, however. Executables, for instance, contain a mixture of binary data and plain text data, but the majority of that data is solely used by the computer itself -- machine code instructions to run the program. Portions of that code will translate into an interface that allow humans to interact with the program, producing yet more binary data that must be translated into a human-readable form, including plain text data.All data is binary, however binary data refers to any non-plain text data, such as images, sound files, videos and executables, or proprietary data formats such as word processing files or any data that requires special handling to present the information to the user. Plain text files are binary as well, but the transition from binary to text requires no special handling because every ASCII/UNICODE character code translates directly to a symbol that is human-readable -- all you need is a text reader. Many binary files contain a mixture of binary data and plain text, but only the plain text portion is readable, everything else must be translated, usually by the program that created the file in the first place.


What is an explanation of the file modes briefly?

Two file modes are "text" and "binary". Text is used for human readable data, such as a C source file, or a notepad text file. Binary is used for computer readable data, such as an executable object file. Two other file modes are "sequential" and "random". Sequential is used when the file is accessed serially, from the beginning to the end, and can be used for both text and binary files. Random is used when the file is accessed non-serially, often jumping around from place to place. An example of random is a database file.


What coding method is used by the computer to convert text into Binary?

the binary numeral system


How do you distinguish between a text file and a binary file?

You can distinguish between binary and text files, and for the most part even identify what type of binary file, by using the "file" command. For example:~$ file unknownfileunknownfile: PNG image data, 155 x 155, 8-bit/color RGBA, non-interlacedThis tells you that the file is a PNG file by reading metadata and/or magic numbers in the file. When used on a text file, the command will return "ASCII text" or "Unicode text."


What is the program used to create text files or make changes to existing files?

A text editor. A word processor.


How do you decrypt the text files that are in your note pad?

Notepad is a very basic word processor that is included in the Windows Operating System that literally can be used to write the operating system for a computer. What you mean be 'decrypt' the text files I do not understand as all text files can be copy-and-pasted in a full featured word processing package.


What is used to write files for the web?

text-editor, for example.


What is the file txt used for?

Text files are commonly used for storage of information.