Table of Contents

Class FileList

Namespace
SunamoFileIO.CallOnlyFileIO
Assembly
SunamoFileIO.dll

EN: Provides async methods for reading and writing files as lists (lines or bytes) CZ: Poskytuje asynchronní metody pro čtení a zápis souborů jako seznamů (řádků nebo bytů)

public class FileList
Inheritance
FileList
Inherited Members
Extension Methods

Methods

ReadAllBytesListAsync(string)

EN: Reads all bytes from file asynchronously and returns as list CZ: Čte všechny byty ze souboru asynchronně a vrátí jako seznam

public static Task<List<byte>> ReadAllBytesListAsync(string path)

Parameters

path string

Path to the file

Returns

Task<List<byte>>

List of bytes from file

ReadAllLinesListAsync(string)

EN: Reads all lines from file asynchronously and returns as list CZ: Čte všechny řádky ze souboru asynchronně a vrátí jako seznam

public static Task<List<string>> ReadAllLinesListAsync(string path)

Parameters

path string

Path to the file

Returns

Task<List<string>>

List of lines from file

WriteAllBytesListAsync(string, List<byte>)

EN: Writes all bytes to file asynchronously CZ: Zapisuje všechny byty do souboru asynchronně

public static Task WriteAllBytesListAsync(string path, List<byte> bytes)

Parameters

path string

Path to the file

bytes List<byte>

Bytes to write

Returns

Task

WriteAllLinesListAsync(string, IList<string>)

EN: Writes all lines to file asynchronously with Unix line endings CZ: Zapisuje všechny řádky do souboru asynchronně s Unix konci řádků

public static Task WriteAllLinesListAsync(string path, IList<string> lines)

Parameters

path string

Path to the file

lines IList<string>

Lines to write

Returns

Task