title: C# file limit using System.IO.StreamWriter with long string Json
body: <p>I am using Json for a big array, and the result of Json is on <code>"sz"(string).</code></p>
  
  <p>When I want to save the Json result (<code>string sz</code>) on a file it will not save the whole string, why?</p>
  
  <p>Note the string value is about 184985 characters.</p>
  
  <p>Here is the code what i have tried so far :</p>
  
  <pre><code> string sz = JsonConvert.SerializeObject(tempArray);
  
   using (StreamWriter file = File.AppendText("json.txt"))
   {
        file.Write(sz);
   }
  </code></pre>
  
  <p>I tried to use</p>
  
  <pre><code>File.AppendAllText(@"json.txt", sz);
  </code></pre>
  
  <p>And</p>
  
  <pre><code>System.IO.StreamWriter file = new System.IO.StreamWriter("json.txt", true);
  </code></pre>
  
  <p>The file size is just 200K.</p>
  
  <p>Is there a limit in text file in windows ?</p>