Home > Net > C # the use of "byte [] WriteData=File. ReadAllBytes (fileName);" The question?
C # the use of "byte [] WriteData=File. ReadAllBytes (fileName);" The question?
Time:09-23
The byte [] WriteData=https://bbs.csdn.net/topics/File.ReadAllBytes (fileName); When used alone is a written documents. Dat file, inside is 01 code, which is I want to write the 01 code, but set a breakpoint, the author found out that WriteData is 01 code and file line feed and carriage returns the ASCII value of the For example, one byte is in the my documents: 01001101 But to set breakpoints observed after 48 49 WriteData is 48 48 and 49 48 49
CodePudding user response:
When you write is to use string coding "01"? It is not surprising