An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# ByteFile [![Build Status](https://travis-ci.org/Ryozuki/ByteFile.svg?branch=master)](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();
```