Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Write File - not inserting carriage return (https://www.kinook.com/Forum/showthread.php?t=4514)

MikePeterson 06-16-2010 10:10 AM

Write File - not inserting carriage return
 
I'm attempting to use the Write File function (with "Append to file" checked) to add build information to a comma delimited csv file (i.e. string1,string2,string3). Successive calls to Write File do append to the file but they do not include carriage returns at the end of each line.

In other words, the resulting file looks like this:

string1,string2,string3string1,string2,string3

instead of what I was hoping for:

string1,string2,string3
string1,string2,string3

Is this expected append behavior? If so, how do I manually insert a carriage return? I've tried looking through the forums and tried several things, several of which end up with a \r showing up as a character string but not an executed action (i.e. string1,string2,string3\rstring1,string2,string3\r ).

Any thoughts would be greatly appreciated.

Thanks.

Mike

kinook 06-16-2010 04:09 PM

Add a newline to the end of the text that is being inserted (by pressing Enter).
http://www.kinook.com/VisBuildPro/Ma...zekeyboard.htm

MikePeterson 06-17-2010 08:15 AM

Such an obvious solution, but obviously one I hadn't thought of. Thanks for the quick response.


All times are GMT -5. The time now is 01:54 AM.


Copyright © 1999-2023 Kinook Software, Inc.