2019-Jul Write To Text Files StreamWriterThis will append to the file at filePath and use Newtonsoft.Json to serialize the data to JSON in someObject. 12345using (var sw = new StreamWriter(filePath, true, Encoding.ASCII)) { sw.Write(JsonConvert.SerializeObject(someObject)); sw.Close();} Newer Reading Text Files Older N-Tier Architecture