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
pathstringPath to the file
Returns
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
pathstringPath to the file
Returns
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
Returns
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)