[HELP] Commands for return to line when writing in file.

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
Neth01
Posts: 2
Joined: Thu Apr 04, 2013 7:33 am

[HELP] Commands for return to line when writing in file.

Post by Neth01 »

Hey guys, we are actually working for our project for high school diploma. Of this fact, we have to know the command for returning to line when we're writing in a file, created by the FAT module (EB037-00-1).
Thank you for responding. Bye. :D

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: [HELP] Commands for return to line when writing in file.

Post by Benj »

Hello,

Have you looked at the FAT examples as part of the main Flowcode examples pack?

anormal
Posts: 16
Joined: Thu Mar 21, 2013 9:25 am
Been thanked: 3 times

Re: [HELP] Commands for return to line when writing in file.

Post by anormal »

Same problem, and i can't find the command in the example files.

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times

Re: [HELP] Commands for return to line when writing in file.

Post by dazz »

Hi Anormal
I dont have a mmc reader but have you looked at the dedicated help file see attached pic, select the fat component (1 in pic) then select the help file (2 in pic). this will pop up a dedicated page of macros etc

Regards
Dazz
Attachments
help.jpg
help.jpg (252.64 KiB) Viewed 4231 times
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

anormal
Posts: 16
Joined: Thu Mar 21, 2013 9:25 am
Been thanked: 3 times

Re: [HELP] Commands for return to line when writing in file.

Post by anormal »

Hi.

I just checked what you told me and nothing is related to my problem. :/

anormal
Posts: 16
Joined: Thu Mar 21, 2013 9:25 am
Been thanked: 3 times

Re: [HELP] Commands for return to line when writing in file.

Post by anormal »

Ok. It works putting \n in the string chain.

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: [HELP] Commands for return to line when writing in file.

Post by Benj »

Hello,

Just as a note here are some standards for adding a new line depending on file system.

Windows

\r\n

Linux

\n

So whn scanning for the end of a line looking for the char \n should always work as expected.

Post Reply