Closed Thread
Results 1 to 4 of 4

Thread: Differences between text files and binary files.

  1. #1
    LoneWolf is offline Newbie
    Join Date
    Jan 2009
    Posts
    10
    Rep Power
    0

    Differences between text files and binary files.

    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.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,478
    Blog Entries
    75
    Rep Power
    143

    Re: Differences between text files and binary files.

    text file = human readable.
    binary file = not human readable.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    LoneWolf is offline Newbie
    Join Date
    Jan 2009
    Posts
    10
    Rep Power
    0

    Re: Differences between text files and binary files.

    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?

  5. #4
    Join Date
    Jul 2006
    Posts
    16,478
    Blog Entries
    75
    Rep Power
    143

    Re: Differences between text files and binary files.

    Unfortunately, no. Binary data is still a string of characters. It is in the interpretation of those characters that the data becomes meaningful.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 7
    Last Post: 10-19-2011, 06:24 PM
  2. java I/O BINARY FILES
    By fabiniyoung in forum Java Help
    Replies: 6
    Last Post: 02-27-2011, 06:13 AM
  3. Finding the end of file in case of binary files
    By saviour2009 in forum C and C++
    Replies: 1
    Last Post: 03-26-2010, 08:13 AM
  4. C++ Writing Binary Files?
    By AtoZ in forum C and C++
    Replies: 1
    Last Post: 01-31-2010, 11:14 AM
  5. Text files
    By travy92 in forum Visual Basic Programming
    Replies: 1
    Last Post: 10-07-2007, 08:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts