Jump to content

  • Log In with Google      Sign In   
  • Create Account

Anyone can help with this?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 noatom   Members   -  Reputation: 785

Like
0Likes
Like

Posted 25 June 2013 - 03:09 AM

I have a text file stored at a certain url address like:

http://site.com/file

 

I need to open it using that url and store every line in a separate string(using vector<string>)

 

I tried finding my way with wininet but I just got stuck.I don't really know where to start.I found the following functions:

InternetReadFile

InternetOpenUrl

 

But I can't figure out what arguments to use.... Anyone can give a hand with this?



Sponsor:

#2 Zaoshi Kaba   Crossbones+   -  Reputation: 4567

Like
1Likes
Like

Posted 25 June 2013 - 04:37 AM

  1. Do you know how to use TCP? You could send HTTP request manually and receive file.
  2. Use URLDownloadToFile function, then open file normally.


#3 Norman Barrows   Crossbones+   -  Reputation: 2308

Like
0Likes
Like

Posted 25 June 2013 - 07:38 AM

 

  1. Do you know how to use TCP? You could send HTTP request manually and receive file.
  2. Use URLDownloadToFile function, then open file normally.

 

 

 

definitely DL the data, then parse. fetching strings one at a time is probably not very efficient. and don't forget resume capabilities on that DL!


Norm Barrows

Rockland Software Productions

"Building PC games since 1989"

rocklandsoftware.net

 

PLAY CAVEMAN NOW!

http://rocklandsoftware.net/beta.php

 

 


#4 noatom   Members   -  Reputation: 785

Like
0Likes
Like

Posted 25 June 2013 - 09:19 AM

Solved,thanks for the help






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS