FAT Append String to file

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

Moderator: Benj

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

FAT Append String to file

Postby alikimiafar » Tue May 23, 2017 3:12 pm

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

Postby alikimiafar » Mon May 29, 2017 2:07 pm

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

Postby alikimiafar » Fri Jun 02, 2017 1:23 pm

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

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8418
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2402 times
Been thanked: 3436 times
Contact:

Re: FAT Append String to file

Postby medelec35 » Sat Jun 03, 2017 6:50 pm

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

Martin
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

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

Re: FAT Append String to file

Postby alikimiafar » Mon Jun 05, 2017 8:50 pm

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

Postby alikimiafar » Mon Jun 12, 2017 9:20 am

Hi Benj
Please help me !

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

Re: FAT Append String to file

Postby Benj » Tue Jun 13, 2017 11:03 am

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 149 times
These users thanked the author Benj for the post:
alikimiafar (Wed Jun 14, 2017 12:34 am)
Rating: 5.26%
 

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

Re: FAT Append String to file

Postby alikimiafar » Wed Jun 14, 2017 12:50 am

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: 14303
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4396 times
Been thanked: 4126 times
Contact:

Re: FAT Append String to file

Postby Benj » Thu Jun 15, 2017 9:51 am

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.