Support Forums
Support Forums
>
Categories
>
Coding Support Forums
>
Visual Basic and the .NET Framework
> Bytes in C#?
Full Version:
Bytes in C#?
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
InfamousKnight
02-12-2011, 01:14 PM
I got a question about C#.
How would you read/write bytes to a file?
Could you give me example code?
KoBE
02-17-2011, 12:08 AM
Code:
byte[] fileData = File.ReadAllBytes("filepath");
File.WriteAllBytes("filepath", fileData);
InfamousKnight
02-17-2011, 09:35 AM
Thank you.
Support Forums
>
Categories
>
Coding Support Forums
>
Visual Basic and the .NET Framework
> Bytes in C#?