https://github.com/edg-l/bytefile
A library to handle raw file reading and writing.
https://github.com/edg-l/bytefile
csharp file io
Last synced: 10 months ago
JSON representation
A library to handle raw file reading and writing.
- Host: GitHub
- URL: https://github.com/edg-l/bytefile
- Owner: edg-l
- License: mit
- Created: 2017-08-30T10:52:47.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-31T11:30:18.000Z (over 8 years ago)
- Last Synced: 2025-03-13T23:03:15.224Z (10 months ago)
- Topics: csharp, file, io
- Language: C#
- Size: 28.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ByteFile [](https://travis-ci.org/Ryozuki/ByteFile)
A library to handle raw file reading and writing.
## Usage
```csharp
BFile MyFile = new BFile("file.dat", true);
var old_encoding = MyFile.GetEncoding(); // Default is UTF8
MyFile.SetEncoding(Encoding.ASCII);
// Write
MyFile.Write(
1,
1.2f,
134151513151UL,
false,
"hello world",
);
// Read
var a1 = MyFile.Read();
var a2 = MyFile.Read();
var a3 = MyFile.Read();
var a4 = MyFile.Read();
var a5 = MyFile.Read();
```