Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

strtofile() ingnores chr(13)

Status
Not open for further replies.

redzombi5k

Programmer
Jan 21, 2009
22
US
Heelo,
I am building a log file as I loop through my code and writing that file with strtofile()

my only problem is that when I execute strtofile() all of my chr(13)'s are ignored so instead of lookinkg like -
12345 - blah blah blah
23456 - blah blah blah

it looks like -
12345 - blah blah blah23456 - blah blah blah

what am I doing wrong? when I look at my variable that I am using with strtofile() in debugger it looks fine.
 
OK, so for any who are interested i finally figured it out,

I needed a chr(13) + chr(10) (a carrage return and a line feed)

So any who, Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top