hi John,..
I didn't quite understand, I thought A, B and C didn't change. If you are saying A,B and C could be changed as well as the values, i.e. it could be,
where the letters can be changed, the you need to code it yourself as per Gert's suggestions.
However, if the strings are always the same, then you can just make them the keys, and then read the keys and the values.
thing is, oif the strings can change, then you are going to need a big case statement to deal with what they possibly could be, if they really are commands. If they are text or somesuch to display on a screen, then obviously that is something different. It's hard to know anything to suggest without knowing the problem to solve.
Hi there NEWBIE ALERT.. Hi i am new to this forum so here is my first post.
I need a bit of help reading a .txt file from an SDcard. I have looked all over and all i can find is how to write to the card.
The data in the txt file will be along the lines of
//////
A1.1, B2.2, C3.3,
A1.2, B2.1, C3.1,
etc......
//////
with this in mind i then want to split each line up as an instruction e.g.
A1.1 B2.2 C3.3
and finally lol extract the string and floating point variables into registers
e.g.
A1.1 String Instruction1 = A ; Float Data1 = 1.1 ;
B2.2 String Instruction2 = B; Float Data2 = 2.2;
C3.3 String Instruction3 = C; Float Data3 = 3.3;
I hope my explanation was precises and look forward to any help any one can give.