I'm doing some exercises because I'll have a test next week and one of the questions I found is "What is the difference between text files and binary files?"
This question is about file input/output in C++. I know some differences, but I'm not sure how to answer it. So I'd like to make a list with the most important differences so I can come up with a decent answer.
text file = human readable.
binary file = not human readable.
Besides that, could I say that data within text files can be read as character strings, while binary files could only be read as data blocks?
Unfortunately, no. Binary data is still a string of characters. It is in the interpretation of those characters that the data becomes meaningful.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks