Friday, 15 April 2011

Azure: Output not as expected in Blob Write -


I am trying to write the output in the text file stored in my blue container.

Woker roll snippet for:

  string copyTemp = ""; CopyTemp + = "Hello" + "\ n"; CopyTemp + = "Hello" + "\ n"; Return (String.IsNullOrEmpty (copyTemp)); (Worm memorystream = new memorystream ()) (memorystream.light) (systemtext. Encoding.utf 8. gatebates (copy), 0, systemtext.Nencoding.utf 8.gatebayte (copytop) lamps); MemoryStream.Position = 0; BlockBlob.UploadFromStream (MemoryStream); }   

Now, when I download and check my Blob, there is no new line in the output.

  "hihello"   

Do anyone have any ideas, what is wrong?

Have you tried using the environment in your string instead of adding "\ n" ?

It may be that your "\ n" does not have a whole new line at the place you are reading. In the windows I believe that you need "\ r \ n" to get a proper line line

you get the difference between the new line (\ n) and the carriage return (\ r) Can read about and use which system, but it clarifies that windows come back with a cart and a line feed new line.

So if you have downloaded your Blob on Mac or Linux, then maybe you will be displayed as much as you expected.

No comments:

Post a Comment