In here to see the number is normal, there are written by 10 times, from 401 to 410, written to a file,
When reading data, read the problem, under the code read
In the File. ReadAllBytes () reads all Byte, only type 401.
By line read word is a 319 and 10, 100. I don't know the problem there, bothers me for a week,, every brother please give directions
CodePudding user response:
Can't find, repeatedly written to the file example, baidu is a writeCodePudding user response:
I'm dying to know what you find the code is covered or additionalAccording to your description as cover
CodePudding user response:
Read your code, the problem on the save youThe code didn't see the save method
But I can probably guess what is the row
Please baidu 'c # additional written'
CodePudding user response:
The Save is additionalCodePudding user response:
Void the Save (string path, byte [] by){
if (! File. The Exists (path))
{
The Debug Log (" create ");
File. The Create (path). The Close ();
}
FileStream FileStream=new FileStream (path, FileMode. Append, FileAccess. Write);
FileStream. Write (by 0, by Length);
FileStream. The Dispose ();
FileStream. Close ();
}
Can't map,
CodePudding user response: