# Mention the types of file. Explain.

1.0k views
in Computer

Mention the types of file. Explain.

+1 vote
by (26.4k points)
selected by

The text file and binary file are the two types of files in C++.

Text file:

A text file also called as ASCII file is a stream of characters that can be sequentially processed in a forward direction by the computer. In text files, each line of text end with a EOL (End of line) character and each file ends with a special character called the EOF (End of file). The file can be edited using text editors like C++ editor, notepad, vi editor in UNIX.