[Solved] Writing to txt file reach out of memory ? C# [closed]

According to new question, here is the answer: StreamWriter outputFileTwoo = new StreamWriter(resultatsTwoo); List <string> firstListThatIcantRevealItName= new List<string>(); List <string> secondListThatIcantRevealItName= new List<string>(); firstListThatIcantRevealItName=System.IO.File.ReadAllLines(@”C:\Users\me\Desktop\blabla.txt”).ToList(); secondListThatIcantRevealItName=System.IO.File.ReadAllLines(@”C:\Users\me\Desktop\potto.txt”).ToList(); using(StreamWriter outputFileOne = new StreamWriter(resultatsOne)) { foreach (string trade in secondListThatIcantRevealItName) { endofFile++; if (!secondListThatIcantRevealItName.Contains(trade)) { outputFileOne.WriteLine(“Trade number : ” + trade + ” exist in first list but not … Read more

[Solved] Unable to deserialize a json object

Introduction When dealing with data, it is often necessary to serialize and deserialize objects. Serialization is the process of converting an object into a format that can be stored or transmitted, while deserialization is the process of converting a serialized object back into its original form. Unfortunately, there are times when deserialization fails, resulting in … Read more

[Solved] How do I convert this string to a DateTime? [closed]

That looks like a UNIX timestamp, if so it’ll be: Int64 timestamp = Convert.ToInt64(“1319556419”); DateTime newDate = new DateTime(1970,1,1).AddSeconds(timestamp); edit: It’s actually seconds instead of milliseconds by the looks of it. This gives the date of October 25, 2011. 3 solved How do I convert this string to a DateTime? [closed]