I often get mobile contacts in a CSV file and I need to send SMS to them. I’m intending to save some time on this repetitive task. I decided to try a solution combining Arduino and SIM900 (GPRS Shield) there are quite few projects and tutorials available over the internet regarding this matter (AT comands, wiring, etc…)
It would be great if I could generate an arrayList or any other data structure containing just two parameters of the CSV file : Contact Name and Contact Number.
But first i need to read the file, get what i need and format what is not in the desired pattern(This applies to contact number only).
I started researching for some solution to this and I found this interesting:
So if you compare both solutions you can see that the first link reads a file from your PC but uses a Processing environment (I tried that code changing the file path and couldnt see anything, no results.) The second solution is less dinamic than the first one and read the file within a SD Card.
Is it possible to read the file from the PC without using Processing? What about the ArrayList structure do you know any similar lib for arduino as an alternative for this one presented for Processing?
EDIT – Attached an example of the csv file with really few contacs, in a real situation this would be huge, note that as default it comes with some “headers” which are the column names
contacts.txt (1.25 KB)