EasyTextFile 1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package EasyTextFile --version 1.0.0
NuGet\Install-Package EasyTextFile -Version 1.0.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.
<PackageReference Include="EasyTextFile" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EasyTextFile --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EasyTextFile, 1.0.0"
#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 EasyTextFile as a Cake Addin #addin nuget:?package=EasyTextFile&version=1.0.0 // Install EasyTextFile as a Cake Tool #tool nuget:?package=EasyTextFile&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
This library allows easy text file handling.
Example of use:
// Saving to hello.txt using a single string content.
"Hello, World!\nGood morning.".SaveToFile("hello.txt");
// Saving to vici.txt using a string array as content.
new [] {
"I see.",
"I come.",
"I conquer."
}.SaveToFile("vici.txt");
// Load content to an array of string.
string[] text = "vici.txt".LoadFile();
// Load content from an embedded resource text file.
// Only use the resource file name, without the namespace.
string[] lines = "news.txt".LoadFromEmbeddedResource();
// Joining array of string into one string.
var oneLiner = new[] {
"Easy come",
"Easy go"
}.ToText(); // == "Easy come\nEasy go"
// Splitting a string to array, by cartridge return.
var lines = "You jump,\nI jump.".ToLines(); // will be split to an array of 2 strings.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has 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.
First release