FAT Set File INDEX [solved]
Posted: Mon Nov 14, 2016 11:04 pm
Hi
Is this a Bug or i am doing somthing wrong ? , I have 2 files in the SD Card named
A.txt and B.txt, A.txt contain " This is File A " and B.txt contain " This is File B "
In the flowchart I : INIT CARD -> SetFileIndex(0) -> OpenFile(A.txt) - > SetFileIndex(1) -> OpenFile(B.txt) - > ReadStringFromFile(50,13)
-> SendString via RS232 -> SetFileIndex(0) -> ReadStringFromFile(50,13) -> SendString via RS232
I get the below result :
This is File B
This is File B
Is this a Bug or i am doing somthing wrong ? , I have 2 files in the SD Card named
A.txt and B.txt, A.txt contain " This is File A " and B.txt contain " This is File B "
In the flowchart I : INIT CARD -> SetFileIndex(0) -> OpenFile(A.txt) - > SetFileIndex(1) -> OpenFile(B.txt) - > ReadStringFromFile(50,13)
-> SendString via RS232 -> SetFileIndex(0) -> ReadStringFromFile(50,13) -> SendString via RS232
I get the below result :
This is File B
This is File B