time diff

Just start to learn Arduino platform and get stuck on simple (or not so simple) question.
i want make a attendance record system, then i save the time into micro SD (using W5100 Ethernet Shield + MicroSD) in notepad/txt format, this file containts like this 1 name id 19:07 1, then i want take data from this file is 1 and 19:07,
after that i want 19:07 will calculate with time logout.
can you help me to share codding to get that's ?
Thanks in advance!

Do need to identify individuals or merely count them with a timestamp ?

How can you tell whether a user is entering or leaving?

Allan

leonard123:
this file containts like this 1 name id 19:07 1, then i want take data from this file is 1 and 19:07,
after that i want 19:07 will calculate with time logout.

Do you want to access this data in an Arduino program or in a PC program?

In either case it will be easier to parse the data if you put a comma (or some other easily identified character - but not a colon as you are already using that in the time value) between the items. The parse example in Serial Input Basics illustrates how to separate the items.

...R

How do you identify the person? Are they entering there name with a keyboard & display? A cheap PC or Raspberry PI would be much easier and more suitable.

allanhurst:
How can you tell whether a user is entering or leaving?

Allan

i will use fingerprint sensor, but now i used micro switch to make login and logout, and to try the system i created one user first, then microswitch 1 for login (A0) , and 2 for logout(A1)

sdturner:
How do you identify the person? Are they entering there name with a keyboard & display? A cheap PC or Raspberry PI would be much easier and more suitable.

i will use fingerprint but i'm using micro switch to try the system

You will need a real-time clock (RTC) module.