Differeence between binary mode and text mode in C

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashwanirana55
    New Member
    • Mar 2008
    • 3

    Differeence between binary mode and text mode in C

    Actually I have to submit my assignment over the Binary and Text mode with examples
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Yes, I understand. But what is your question exactly?

    Comment

    • ashwanirana55
      New Member
      • Mar 2008
      • 3

      #3
      Originally posted by weaknessforcats
      Yes, I understand. But what is your question exactly?

      My question is to explain the difference b/w text and binary file, w.r.t
      a) Null character
      b) Characrter Storage
      c)End of file

      Comment

      • ashwanirana55
        New Member
        • Mar 2008
        • 3

        #4
        Originally posted by weaknessforcats
        Yes, I understand. But what is your question exactly?

        My question is to explain the difference b/w text and binary file, w.r.t
        a) Null character
        b) Characrter Storage
        c)End of file
        with examples

        Comment

        • weaknessforcats
          Recognized Expert Expert
          • Mar 2007
          • 9214

          #5
          The short answer is that text mode assumes the file is broken into records terminated by a carriage return or maybe a carriage return linefeed. Binary mode just means that all bytes in the file are part of the data.

          Comment

          Working...