Reading from (sd card), and analyzing them

Hi :slight_smile:

I have a set of readings inside (sd card) this way:

22,2451.541
44,412.1
77,4452
11,654121.2114

I want to read from (sd) a line line in order from one line to the last line, each time the value of the read line is placed in variable (a)
Each line is analyzed in this way:

a=11,654121.2114;

f=11;

h=654121.2114;

//While keeping the figures as they are h=654121.2114

Thank you...

You can use myFile.parseInt() and myFile.parseFloat() with the SD library.

a=11,654121.2114;

This most likely won't work.

meltDown:
You can use myFile.parseInt() and myFile.parseFloat() with the SD library.

I will be experimenting, thank you for this information

zwieblum:

a=11,654121.2114;

This most likely won't work.

what is the reason ?

aradiblawi:
what is the reason ?

Well "a" would be a variable, say an int or a float, able to hold one value. Seems you expect it to hold two...

meltDown:
Well "a" would be a variable, say an int or a float, able to hold one value. Seems you expect it to hold two...

Okay ,
If we write data in (sd) this way:

"11,654121.2114"

It is then stored inside a variable of type string

String a;

a="11,654121.2114";

Is this method correct?