C# Read and Write File (edit)
byte[]
Stream
StreamWriter
StreamReader
File.Exists(
File.ReadAllBytes(
File.ReadAllLines(
File.ReadAllText(
File.Open(
File.Delete(
File.WriteAllBytes(
File.WriteAllLines(
File.WriteAllText(
File.WriteAllBytesAsync(
File.WriteAllLinesAsync(
File.WriteAllTextAsync(
File.CreateText(
File.CreateTextAsync(
File.AppendText(
File.AppendTextAsync(
File.AppendAllText(
File.AppendAllTextAsync(
File.AppendAllLines(
File.AppendAllLinesAsync(
.Write(
.WriteAsync(
.WriteLine(
.WriteLineAsync(
.Flush(
.FlushAsync(
--------------------------------------------------
using FileStream fs = File.OpenWrite(path);
var data = "Awesome text";
byte[] bytes = Encoding.UTF8.GetBytes(data);
fs.Write(bytes, 0, bytes.Length);
--------------------------------------------------
Path.Combine(
Environment.GetFolderPath(
key site:zetcode.com
key site:tutorialspoint.com