Feature request: readln() in SD library
What it would be doing: read a single line from a file as string.
It would be handy to have this as part of the SD library.
Because i am a beginner on C++ i cannot do this myself.
Feature request: readln() in SD library
What it would be doing: read a single line from a file as string.
It would be handy to have this as part of the SD library.
Because i am a beginner on C++ i cannot do this myself.
Because i am a beginner on C++ i cannot do this myself.
Maybe it is difficult, but you should be able to do it, there are many things in life that are much harder. Don't be afraid of failure as it is the best teacher there is.
Lets go to the requirements first.
What it would be doing: read a single line from a file as string.
The most important questions are:
The second point is most difficult as there can be 2 conditions when to stop
This gives the additional question, how do we know it succeeded or failed?
And yes, how do you want to handle the end of line character?
That are a lot of questions to be answered, but none is very difficult.
Given the above information, how would a call to the readln function look like?
What parameters does it have?
What return value(s)?
Can you provide three as real as possible calls to the readln() ?
Succes,
Rob
John Fitzgerald Kennedy: We will go to the moon. We will go to the moon and do other things, NOT because they are easy but because they are HARD.