Connecting Tech Pros Worldwide Help | Site Map

changing data a little bit need small code

Newbie
 
Join Date: Aug 2007
Posts: 10
#1: Aug 29 '07
Hi all,

I have allmost finished my solution, im so close but I am stuck with following:

I need to display a carriage return and have done that using chr(13) which for some reason or the other doesnt seem to appear when using the streamwriter to write this value inside of my text file.


Secondly, I have no problems collecting my quantity value from the xml file, which in this case is 15 but need to have 12 characters taken in my text file where this value is outputted.
To make things a bit clearer:

I have:

< 15> (withouth the brackets) and should have
<000000000015>(withouth the brackets)

obviously if the quantity in the xml file is 100 then this should be the result:
<000000000100>(withouth the brackets)

Can anyone help me out with this by any chance?


Many thanks!

Rob
Newbie
 
Join Date: Aug 2007
Posts: 10
#2: Aug 29 '07

re: changing data a little bit need small code


I found the solution.

thanks anyway!

rob
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,158
#3: Aug 29 '07

re: changing data a little bit need small code


you need crlf for windows files
"\r\n"
Reply