SD Card carriage return

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
mb101
Flowcode v5 User
Posts: 5
Joined: Fri Jun 08, 2012 12:50 pm
Has thanked: 1 time

SD Card carriage return

Post by mb101 »

Hi,

I've been trying for a while to get a carriage return written to a text file on SD card using the "Append_String_To_File" macro without any luck. I even tried converting the ascii / hex for a carriage return by various functions by still no joy. I've had a good look around but cannot find any similar posts, has anyone done this before or can you point me in the right direction? Pic / SPI / SD card all working fine, just the carriage returns. Or do I need to goto block write with "Write_File_Sector"?

Thanks in advance :P

Regards

Mark

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: SD Card carriage return

Post by Benj »

Hi Mark,

Have you tried this in the string?

"test line \n"

if this doesn't work then you could try.

"test line \\n"

Otherwise you can assign this to a string variable and then use the string variable with the append string function.

CRstringvar[0] = 13
CRstringvar[1] = 0

Post Reply