Click to See Complete Forum and Search --> : Insert Newline with Writefile
spejaren
Apr 25th, 2001, 03:27 AM
Hi,
I need to insert newline at the end of a textfile using writefile.
Is this possible or are there another API-Call to do that?
/John Jacobson
alex_read
Apr 25th, 2001, 05:05 AM
WriteFile hFile, xxx, 10, numwritten, CLng(0)
Have you tried substituting xxx above for one of these :
vbcrlf
Chr(13)
lssikkes
Apr 25th, 2001, 11:41 AM
Try vbCrLf or vbNewline
spejaren
Apr 26th, 2001, 01:34 AM
That didn't work.
I Solved the problem with the VB scripting Runtime instead, It's a bit slower, but it works.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.