Good day everyone,
I've created a method to read a log file from the Netduino SD card. The good thing about the approach I took is that it works really fast and the reason behind that is that it goes from the end of the file and then starts looking for a delimiter, in this case the carriage return and new line bytes (1310 or rn in English) and then once it reaches the number of carriage returns + new line breaks (# of rows) you wish to retrieve from the log, it then starts reading forward using the traditional ReadLine() method up to the end of the file.
I've tried this code in my N+2 for a while and it is working fine so far.
Attached is the demo project of it.
Sorry in advance for not putting any comments in the code. If you have any questions, comments or suggestions, please do not hesitate to drop a line here or PM me.
Enjoy!