CrypticWizard.SaveFile 0.2.0

.NET 5.0 .NET Core 3.1
NuGet\Install-Package CrypticWizard.SaveFile -Version 0.2.0
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.
dotnet add package CrypticWizard.SaveFile --version 0.2.0
<PackageReference Include="CrypticWizard.SaveFile" Version="0.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CrypticWizard.SaveFile --version 0.2.0
#r "nuget: CrypticWizard.SaveFile, 0.2.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install CrypticWizard.SaveFile as a Cake Addin
#addin nuget:?package=CrypticWizard.SaveFile&version=0.2.0

// Install CrypticWizard.SaveFile as a Cake Tool
#tool nuget:?package=CrypticWizard.SaveFile&version=0.2.0



  • A text file read/write class for arbitrary data types .NET and .NET Core
  • Removes the need to explicitly convert non-string variables to string when writing a text file
  • Removes the need to explicitly parse non-string variables when reading a text file
  • Strong typing is preserved when reading a text save file


.NET 5.0

.NET Core 3.1


Install Package

dotnet add package CrypticWizard.SaveFile
<PackageReference Include="CrypticWizard.SaveFile" Version="0.2.0"/>

Include Package

using CrypticWizard.SaveFile;

Write Settings File

TextSaveFile textSaveFile = new TextSaveFile();

textSaveFile.Add("Workstation", "DESKTOP-123");
textSaveFile.Add("LastLogin", DateTime.Now);
textSaveFile.Add("TotalLogins", 7);
textSaveFile.Add("Hours", 11.3);

LastLogin=datetime=11/12/2021 8:09:19 PM

Read Settings File

TextSaveFile readFile = TextSaveFile.Read("mySettings.txt");

string userWorkstation = readFile.GetString("UserWorkstation");
DateTime? userLastLogin = readFile.GetDateTime("UserLastLogin");
int? userTotalLogins = readFile.GetInt("UserTotalLogins");
double? userHours = readFile.GetDouble("UserHours");
11/12/2021 8:09:19 PM


Supported Primitives

  • string
  • char
  • bool
  • sbyte
  • short
  • int
  • long
  • byte
  • ushort
  • uint
  • ulong
  • double
  • float
  • decimal

Supported Classes

  • DateTime

Planned Features

  • delimiter collision checking



Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp3.1
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • net5.0

    • No dependencies.

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
0.2.0 105 1/16/2022

Replaced dictionary lookups with get functions