Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bytes in C#?
#1
I got a question about C#.

How would you read/write bytes to a file?


Could you give me example code?
Reply
#2
Code:
byte[] fileData = File.ReadAllBytes("filepath");
File.WriteAllBytes("filepath", fileData);
Reply
#3
Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)