C# Класс Aqueduct.Extensions.IO

Summary for the Files class
Показать файл Открыть проект

Открытые методы

Метод Описание
CreateToFile ( this fileText, string absolutePath ) : void

Creates or opens a file for writing and writes text to it.

GetFileText ( this absolutePath ) : string

Read a text file and obtain it's contents.

ReadWebPage ( string url ) : string

Fetches a web page

UpdateFileText ( this absolutePath, string lookFor, string replaceWith ) : void

Update text within a file by replacing a substring within the file.

WriteToFile ( this absolutePath, string fileText ) : void

Writes out a string to a file.

Описание методов

CreateToFile() публичный статический Метод

Creates or opens a file for writing and writes text to it.
public static CreateToFile ( this fileText, string absolutePath ) : void
fileText this A String containing text to be written to the file.
absolutePath string The complete file path to write to.
Результат void

GetFileText() публичный статический Метод

Read a text file and obtain it's contents.
public static GetFileText ( this absolutePath ) : string
absolutePath this The complete file path to write to.
Результат string

ReadWebPage() публичный статический Метод

Fetches a web page
public static ReadWebPage ( string url ) : string
url string The URL.
Результат string

UpdateFileText() публичный статический Метод

Update text within a file by replacing a substring within the file.
public static UpdateFileText ( this absolutePath, string lookFor, string replaceWith ) : void
absolutePath this The complete file path to write to.
lookFor string A String to be replaced.
replaceWith string A String to replace all occurrences of lookFor.
Результат void

WriteToFile() публичный статический Метод

Writes out a string to a file.
public static WriteToFile ( this absolutePath, string fileText ) : void
absolutePath this The complete file path to write to.
fileText string A String containing text to be written to the file.
Результат void