954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

help on txt reading from server

hi, first of all im noob and 11 years old so don't blame me if something is wrong!
i try to read a txt, see a version, read a txt on a server, see if on server newer and ask to update if yes. any suggestions? Oh and in C++ ONLY!

dvidunis
Newbie Poster
Banned
8 posts since Sep 2010
Reputation Points: 10
Solved Threads: 0
 

Go and learn about some socket programming and fstream.

Tellalca
Posting Whiz in Training
209 posts since Mar 2010
Reputation Points: 29
Solved Threads: 24
 
Go and learn about some socket programming and fstream.


searched, not found. i just find servers/clients. i need to read the contents of a file at a server. not do a server. please gimme links too, google hates me. hes not my friend.

dvidunis
Newbie Poster
Banned
8 posts since Sep 2010
Reputation Points: 10
Solved Threads: 0
 

You need some way to communicate with the server. If you are not setting up your own server client on the server then you will have a hard time accessing it with just C++ without much programming.

If you only want to hit-up a server and grab some text off it I would use a utility like telnet or ssh.

You could try making your own telnet/HTTP client to connect to port 80 on the server and GET the text file, possibly. The HTTP protocol uses ASCII/plain text to communicate so you could make a C++ client that sets up a connection with a server on port 80 and communicate with the HTTP protocol and try to snag your text file off it.

You could (if you're too lazy to make your own) check out some C++ HTTP/FTP libraries HERE .

\007
Junior Poster in Training
67 posts since Apr 2011
Reputation Points: 21
Solved Threads: 6
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: