Util.File.Abstraction 6.0.5

dotnet add package Util.File.Abstraction --version 6.0.5
NuGet\Install-Package Util.File.Abstraction -Version 6.0.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Util.File.Abstraction" Version="6.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Util.File.Abstraction --version 6.0.5
#r "nuget: Util.File.Abstraction, 6.0.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Util.File.Abstraction as a Cake Addin
#addin nuget:?package=Util.File.Abstraction&version=6.0.5

// Install Util.File.Abstraction as a Cake Tool
#tool nuget:?package=Util.File.Abstraction&version=6.0.5

FileAbstraction

For shortened file IO syntax.

This is an easy way of writing/reading files. This might be useful for state management, or quick prototyping.

For example, you can save files to the current directory with the syntax: someObject.ToFile();

For example: 256.ToFile(); This will write the number 256 to a file.

Then, you can display the file with FileAbstract.DisplayFile();

You can also specify specific paths:

"Some file content".ToFile( "Some user directory", "myFile.txt"));
FileAbstraction.DisplayFile("Some user directory", "myFile.txt");

You can serialise objects to/from files, for example:

var c = new Computer();
c.ToFile();
var savedC = FileAbstraction.ReadBinFile<Computer>();
Console.WriteLine(savedC.Name);
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.0.5 253 1/16/2023
6.0.4 247 1/15/2023
6.0.3 261 1/14/2023
6.0.2 263 1/14/2023
6.0.1 241 1/9/2023
6.0.0 245 1/8/2023