Couple of quick questions...inf and reading data


two little questions...
is output of inf division because data small display or out of range of doubles? work others (using same calculation) save inf.

and how can read file , sd card line line...the line read selected variable.
the variable @ start of each line in recorded data ie line 1. 2. 3. 4. etc if help.

quote
is output of inf division because data small display or out of range of doubles?

inf means infinity, not small.inf result of doing dumb, dividing 0.

quote
and how can read file , sd card line line...the line read selected variable.

you can't. there nothing defines "line". there characters/byte. convention, of bytes funny things print heads , paper feed mechanisms , cursor positions.

you can read , store data in array until 1 of funny bytes found ('\n' or '\r'). can count number of times 1 of funny characters has along, see if have right "line".

now, if have fixed length records, story lot different. in case, there no reason read whole file, can seek() start of nth record.


Arduino Forum > Using Arduino > Programming Questions > Couple of quick questions...inf and reading data


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support