Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So, i am creating this program and now i need to keep a track of the time when the user checks in and checks-out the system each day. I think that i have to create a record for that but is there any easier way to do it? Any suggestions
Posted
Updated 1-Aug-14 2:58am
v2
Comments
Thanks7872 1-Aug-14 9:05am    
What do you mean by easier? Store the data, that's it.No one can suggest you easier than this one.
Wendelius 1-Aug-14 9:11am    
Easier than what? What kind of record you have in mind?

Create a record? OK, in WHAT?

What are you creating this record in? A text file? A database? What?

Without knowing anything about how and where you're storing your applications data, it's pretty much impossible to tell you what's "an easier way".
 
Share this answer
 
Use MySQL for your backend storage. It is available for both Microsoft and Linux and any ISP running Linux Servers will have it by default with all Linux distro's which means you can store your data somewhere on the Web if you need people from all over the world to log their times and have management all over those worlds wanting to see what their employees are up to at any given time.

They might as well start using Twitter in that case.... just kidding of course ;)
 
Share this answer
 
Here is a code that will contact a textfile and read it to update just change it to write to the file normally this was made for updates and uses dropbox a file hosting program it was hosting the text file.

VB
Public Sub CheckForUpdates()

Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(our txt file link here)

Dim response As System.Net.HttpWebResponse = request.GetResponse() Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetRespoonseStream()) Dim newestversion As String = sr.ReadToEnd() Dim currentversion As String = Application.ProductVersion If newestversion.Contains(currentversion) Then msgbox (You are up todate) Else msgbox (There is a new update we will download it now for you.) system.diagnostics.process.start (New link)
End If
 
Share this answer
 
Comments
Dave Kreskowiak 10-Aug-14 10:58am    
OK, get off the DropBox addiction. It's not a solution for everything and all you're doing is storing data in a text file.
Jacob Antivirus 11-Aug-14 13:05pm    
What is wrong with dropbox?
Dave Kreskowiak 11-Aug-14 19:35pm    
You're pushing DropBox as a solution for very different problems and this problem doesn't lend itself to it at all.

This problem description sounds a LOT like a database representation problem and you're pushing a file replication solution on it. Very weird.
Tino Fourie 11-Aug-14 15:04pm    
Dropbox is a file hosting / sharing solution and was never meant to be used as a data presentation platform. If you are spending the time to write software, then the least you can do is to respect your backend and by that I do not mean your bottom.

A chain is as strong as its weakest link, your database is one such link. Why bother writing a piece of software to write to a text file hosted on dropbox.

Flat files were used in the days when Wang, Unisys, IBM Persetel, ICL, CDC Cyber, etc. were big names in the mainframe computing industry. Cobol (Reporting) and Fortran (Scientific) were the most commonly used development environments known at the time, not forgetting Natural Adabas and Basic. None of these had a decent Database Management System like we have today, namely SQL to name but one. ISAM and VSAM file structures were used back then which really boils down to some degree of a Flat File structure.

Use MySQL for your backend storage. It is available for both Microsoft and Linux and any ISP running Linux Servers will have it by default with all Linux distro's.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900