FAT Append String to file

A forums to allow bugs and problems with Flowcode v6 to be reported and resolved.

Moderator: Benj

Post Reply
alikimiafar
Posts: 7
Joined: Tue May 23, 2017 10:26 am
Has thanked: 1 time
Contact:

FAT Append String to file

Post by alikimiafar »

Hi
I use flow code6 and pic 18f26k22 ,conect micro to sd but have 2 problems
1. Ì can't create a file name more than 4 charector .....why?
2. When append string to file in line 46 some txt write on line 35 .....
I saw a problem in (viewtopic.php?f=64&t=18356) look like my problem that Benj fix it and send new FAT.fcpx file for flowcode7
But my problem in flowcode6 and I cant use this file for my flowcode6
Please help me and send FAT.fcpx

This is "data.txt" file that micro write in microsd file
Look at line 35 and 46

input is 1000000000 245 at 17/05/23 16:16:48
input is 0000000000 245 at 17/05/23 16:16:49
input is 1000000000 245 at 17/05/23 16:16:51
input is 0000000000 245 at 17/05/23 16:16:51
input is 1000000000 245 at 17/05/23 16:16:53
input is 0000000000 245 at 17/05/23 16:16:54
input is 1000000000 245 at 17/05/23 16:16:56
input is 0000000000 245 at 17/05/23 16:16:57
input is 1000000000 245 at 17/05/23 16:16:58
input is 0000000000 245 at 17/05/23 16:17:00
input is 1000000000 245 at 17/05/23 16:17:04
input is 0000000000 245 at 17/05/23 16:17:05
input is 1000000000 245 at 17/05/23 16:17:07
input is 0000000000 245 at 17/05/23 16:17:09
input is 1000000000 245 at 17/05/23 16:17:10
input is 0000000000 245 at 17/05/23 16:17:12
input is 1000000000 245 at 17/05/23 16:17:13
input is 0000000000 245 at 17/05/23 16:17:15
input is 1000000000 245 at 17/05/23 16:17:18
input is 0000000000 245 at 17/05/23 16:17:20
input is 1000000000 245 at 17/05/23 16:17:21
input is 0000000000 245 at 17/05/23 16:17:23
input is 1000000000 245 at 17/05/23 16:17:26
input is 0000000000 245 at 17/05/23 16:17:27
input is 1000000000 245 at 17/05/23 16:17:29
input is 0000000000 245 at 17/05/23 16:17:31
input is 1000000000 245 at 17/05/23 16:17:33
input is 0000000000 245 at 17/05/23 16:17:36
input is 1000000000 245 at 17/05/23 16:17:38
input is 0000000000 245 at 17/05/23 16:17:41
input is 1000000000 245 at 17/05/23 16:17:44
input is 0000000000 245 at 17/05/23 16:17:46
input is 1000000000 245 at 17/05/23 16:17:47
input is 0000000000 245 at 17/05/23 16:17:50
input at 17/05/230 245 at 17/05/23 16:17:52
input is 0000000000 245 at 17/05/23 16:17:55
input is 1000000000 245 at 17/05/23 16:17:58
input is 0000000000 245 at 17/05/23 16:18:00
input is 1000000000 245 at 17/05/23 16:18:03
input is 0000000000 245 at 17/05/23 16:18:06
input is 1000000000 245 at 17/05/23 16:18:08
input is 0000000000 245 at 17/05/23 16:18:10
input is 1000000000 245 at 17/05/23 16:18:13
input is 0000000000 245 at 17/05/23 16:18:16
input is 1000000000 245 at 17/05/23 16:18:22
input is 0000000000 245
Last edited by alikimiafar on Mon May 29, 2017 2:13 pm, edited 1 time in total.

alikimiafar
Posts: 7
Joined: Tue May 23, 2017 10:26 am
Has thanked: 1 time
Contact:

Re: FAT Append String to file

Post by alikimiafar »

please help me

alikimiafar
Posts: 7
Joined: Tue May 23, 2017 10:26 am
Has thanked: 1 time
Contact:

Re: FAT Append String to file

Post by alikimiafar »

Benj please help me .....you solved this problem for flowcode7 But I use flowcode6 .....

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: FAT Append String to file

Post by medelec35 »

Hi alikimiafar,
Ben is on holiday all next week.
So please bear with for a while longer.

Martin
Martin

alikimiafar
Posts: 7
Joined: Tue May 23, 2017 10:26 am
Has thanked: 1 time
Contact:

Re: FAT Append String to file

Post by alikimiafar »

Thanks
Ok I am waiting....to come back....

alikimiafar
Posts: 7
Joined: Tue May 23, 2017 10:26 am
Has thanked: 1 time
Contact:

Re: FAT Append String to file

Post by alikimiafar »

Hi Benj
Please help me !

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: FAT Append String to file

Post by Benj »

Hello,

Sorry for the delay. Please can you try this and see how you get on.

Simply copy the attached file into your "Flowcode 6/components" directory and restart Flowcode.
FAT.fcpx
(66.24 KiB) Downloaded 363 times

alikimiafar
Posts: 7
Joined: Tue May 23, 2017 10:26 am
Has thanked: 1 time
Contact:

Re: FAT Append String to file

Post by alikimiafar »

hi Benj
thanks very much :D
very good my problem number 2 solved
but I cant create file name bigger than 4 character for example :
I can create data.txt but I cant create flowcode.txt (with more than 4 character) and on sd card just create flow.txt What is the problem?

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: FAT Append String to file

Post by Benj »

Hello,

Glad this has fixed the append issue for you.
I can create data.txt but I cant create flowcode.txt (with more than 4 character) and on sd card just create flow.txt What is the problem?
I haven't come across this issue before the file name "flowcode.txt" should be fine. Have you tried a different card to make sure it's not a card specific thing.

Post Reply