opening a web file
-
Hi guys If I have a file in a web place http:\www.myweb.com\text\myfile.txt Is there a simple way to do something similar to fopen("http:\www.myweb.com\text\myfile.txt", "rt") or it's impossible? Best Regards
Although I've never tried, I believe sockets is what you'll need (e.g.,
recv()
,send()
,connect()
). If, however, you are using MFC, take a look atCFtpConnection::OpenFile()
.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
-
Although I've never tried, I believe sockets is what you'll need (e.g.,
recv()
,send()
,connect()
). If, however, you are using MFC, take a look atCFtpConnection::OpenFile()
.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
-
Hi guys If I have a file in a web place http:\www.myweb.com\text\myfile.txt Is there a simple way to do something similar to fopen("http:\www.myweb.com\text\myfile.txt", "rt") or it's impossible? Best Regards
I don't think you can do that directly ...You can try CHttpFile class in MFC which will help you ... Cause is my effort; Effect is God's effort
-
Hi guys If I have a file in a web place http:\www.myweb.com\text\myfile.txt Is there a simple way to do something similar to fopen("http:\www.myweb.com\text\myfile.txt", "rt") or it's impossible? Best Regards
I did this sort of thing recently using class CInternetSession. Have a look at that. (And don't forget that any \s in a string have to be \\ )