+ Reply to Thread
Results 1 to 4 of 4

Thread: Differences between text files and binary files.

  1. #1
    Newbie LoneWolf is an unknown quantity at this point
    Join Date
    Jan 2009
    Age
    19
    Posts
    10

    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. #2
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,680
    Blog Entries
    57

    Re: Differences between text files and binary files.

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

  3. #3
    Newbie LoneWolf is an unknown quantity at this point
    Join Date
    Jan 2009
    Age
    19
    Posts
    10

    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?

  4. #4
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,680
    Blog Entries
    57

    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.
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Tutorial: Storing Images in MySQL with PHP
    By Jordan in forum PHP Tutorials
    Replies: 43
    Last Post: 01-16-2010, 10:35 AM
  2. Determine if a file is binary
    By Nightracer in forum C# Programming
    Replies: 5
    Last Post: 09-16-2006, 02:26 PM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

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