This project has moved. For the latest updates, please go here.

Why does garbles large files?

Mar 9, 2013 at 10:33 PM
Edited Mar 9, 2013 at 10:33 PM
If I simply open a large JSON file and write it back:

JObject o1 = JObject.Parse(File.ReadAllText(inputFile));
File.WriteAllText(outputFile, o1.ToString());

Sometimes the date formats get garbled. For example, "2013-01-17T11:00:40.000-06:00" gets written as "2013-01-17T11:00:40-06:00" ("40.000" becomes "40")


The file is large, but I don't want to read it token by token since I need LINQ queries..