Support Forums

Full Version: Bytes in C#?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I got a question about C#.

How would you read/write bytes to a file?


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