Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Finding out whether the text file...
Closed Thread
Old 03-15-2004, 02:00 AM   #1 (permalink)
 
Newb Techie

Join Date: Mar 2004

Posts: 1

snowei1

Default Finding out whether the text file...

I want to compare my user's PC text file with the one in the web server.I wan to know which text file is newer. The server text file can be accessed by http://server1/app.txt
When I find the text file on the user's PC is the older one, I want to be able to upgrade the text file to the one on the server which is newer.

How can I go about it?
Thanks
snowei1 is offline  
Old 03-17-2004, 09:15 AM   #2 (permalink)
 
Banned

Join Date: May 2003

Posts: 105

imported_Jack

Default

See thet System.io namespace:

http://msdn.microsoft.com/library/de...ClassTopic.asp
imported_Jack is offline  
Old 03-24-2004, 09:29 PM   #3 (permalink)
 
Junior Techie

Join Date: Mar 2004

Posts: 56

raylu

Send a message via AIM to raylu
Default

Well, you basically want the file on the user's computer to be the same as on the server, right? I don't really think you need to check the date, because if their file is more recent than yours, you've got problems. Otherwise, you can just update it.
So just check to see if the files are the same; if not, update.
__________________
\"Only when the last tree is dead, the last field paved, and the last river dammed, only then will we realize that we can\'t eat money.\"
http://raylu.uni.cc
raylu is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On