Home > Back-end >  File problem
File problem

Time:04-21

In text mode to open the text file to read and write, if a text file with discards \ r \ r \ n only read \ n, when written to, too, then came the question, to open a binary file to read and write text way also will undertake this conversion, so may lead to read out the content is wrong, want to ask is the binary files are stored in 01? Since storage are 01, he said here a wrong lead to read the content is what meaning, is used to read and write functions make mistakes, or other what mean, has the best code sample, thank you

CodePudding user response:

All of the files is just a series of binary content,

CodePudding user response:

reference 1/f, zhao teacher reply:
the contents of all files is just a series of binary bytes,
here said that file is \ r \ n and refers to where, it opens a file here refers to our mouse click this open, this is going to learn some of the underlying knowledge to understand ah, I'm not a cs, now just learn c, should take a look at some other books
  • Related