Updated README

pull/2/head
Francesco Bertolaccini 2017-04-12 20:51:25 +02:00
parent 1bcbac8de8
commit 1454721b8c
1 changed files with 13 additions and 0 deletions

View File

@ -23,6 +23,19 @@ or by adding it as a reference using NuGet:
Install-Package SharpPhysFS
You should also include compiled shared library of physfs alongside your binary files to be loaded.
## Usage
````c#
using(var pfs = new PhysFS("")) // This ensures correct initialization and deinitialization
using(var stream = pfs.OpenRead("/helloworld.txt"))
{
var reader = new StreamReader(stream);
var contents = reader.ReadToEnd();
}
````
## Support on Beerpay
Hey dude! Help me out for a couple of :beers:!