My project is based on GSM-Module, When ever SMS is received, It should respond back automatically depending up on text received.
SMS Example:
Attendance (unique ID)
Marks (unique ID)
.. etc
I am doing it for my college, Here "Attendance" , "Marks" are predefined keywords. Now I am able to process the Strings, checking for and saving them to temporary variables.
TempVariable1 - Attendance
TempVariable2 - unique ID
My Questions:
How to use String compare in Files( If i have 1000 Students ) ?
Should I create only one file or multiple files ??
If multiple files, Is it preferable to create separate file for every key word defined?
Which format is preferable for creating DataBase ? (In later stage,I want it to upload it to some server)
How to use String compare in Files( If i have 1000 Students ) ?
Read the file one character at a time, appending to a String, if the character is not the end of record marker. If it is, then don't add the character to the String. Instead, compare the String populated with data from the file with the stored value.
The number of students is irrelevant, except that it defines how long it will take to find a particular student.
Should I create only one file or multiple files ??
Until you determine how long it takes to process one large file, such a decision is premature.
If multiple files, Is it preferable to create separate file for every key word defined?
Same answer.
Which format is preferable for this application ? (In later stage,I want it to upload it to some server)
Format for what? What is "it" that you want to upload to a server?
I am having Mega, SD/Ethernet Shield W5100, Can I create any similar sot of database which can reside on SD-card. Actually, I am trying to create a standalone device.
I figured out, ".csv ", file can be used as small db and basic file i/o operation can be performed directly.
Is It reliable ?? ... If reliable, should I search every time, by just opening the file stored in SD-Card or load it in to ram creating some temp variable ? Which can perform quick search?
Which format is preferable for this application ? (In later stage,I want it to upload it to some server)
Format for what? What is "it" that you want to upload to a server?
Sir, I want to Edit files saved on SD-card via Ethernet, Using some webpage(for Editing manually Attendance or Marks) and Updating those files in memory card.
I am lost sir, unable to decide, never build any website. I am from Electronics background and good at c&c++.
There are many type of servers ?? Which to choose? (Ftp or web servr or both, for uploading files and displaying webpage)
do I need any database if I only want to edit .csv files ?
I want my device to be standalone device and update when ever connected. So, should I program my arduino as Client ??