long line truncated on vista 2048

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I'm writing to a logfile in My Documents.
I'm want to write a rather long line approximately 2200 chars.

On XP it works as expected but on Vista only the first 2048 chars are
written.
Does anyone know why and how to get around it?

I tried both StreamWriter,File.AppendAllText and File.WriteAllText

.



Relevant Pages

  • Re: Using a string as a hash (symbolic ref)
    ... SB> programs) writing the tests than I do when I'm writing the programs ... coding is coding and the more you do the more you learn. ... just a plain string with / chars on the ends. ... the unlike call will convert that but the / will be literal / chars. ...
    (perl.beginners)
  • Re: writeChars not behaving as expected
    ... You are probably writing 16 bit chars, where you editor wants 8 bit. ... Random access is normally not human-readable. ...
    (comp.lang.java.programmer)
  • Re: cmd.exe and line too long
    ... lines @ 80 chars! ... while writing the message ... ... how to increase the size of the buffer of cmd.exe to allow a long ...
    (microsoft.public.win2000.general)
  • Re: Remove trailing blank lines at the end of a file
    ... Luk wrote: ... You are writing the trimmed stuff back to the file, ... echo 'OK'; ... then after the checks about the spaces and other chars, ...
    (comp.lang.php)
  • Dataset WriteXML aborts
    ... I read and write data for an XML file into a dataset, ... the fields are sometimes a bit longer with maybe 1000 chars. ... The writing stops right within one tag. ... It looks as if the last buffer has not been flushed out of memory into the ...
    (microsoft.public.dotnet.framework.adonet)