cypher175 Posted February 26, 2009 Share Posted February 26, 2009 Are there any functions to read a .txt file thats hosted online without having to 1st download it..?? Link to comment Share on other sites More sharing options...
jvanegmond Posted February 26, 2009 Share Posted February 26, 2009 (edited) Are there any functions to read a .txt file thats hosted online without having to 1st download it..?? No. You can't read a file without reading it.If you are referring to not storing it on the hard disk, then yes. Edited February 26, 2009 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
cypher175 Posted February 26, 2009 Author Share Posted February 26, 2009 uh which is it yes or no your response is confusing..?? I want to read the hosted .txt file without having to download it to disk..?? Link to comment Share on other sites More sharing options...
jvanegmond Posted February 26, 2009 Share Posted February 26, 2009 Yes, you can. But it's not worth doing it, looking at the time it takes to develop such code. Use InetGet to a temporary file and directory. github.com/jvanegmond Link to comment Share on other sites More sharing options...
ResNullius Posted February 26, 2009 Share Posted February 26, 2009 Yes, you can. But it's not worth doing it, looking at the time it takes to develop such code.Use InetGet to a temporary file and directory.Or _INetGetSource () from the INet UDF... Link to comment Share on other sites More sharing options...
cypher175 Posted February 27, 2009 Author Share Posted February 27, 2009 Is there anyway to do a _FileReadToArray with _INetGetSource without having to download the .txt file to disk..?? I have a hosted .txt file that has a website URL on each line that needs to get read into an Array so that i can use each URL on the .txt in a For Statement..?? Link to comment Share on other sites More sharing options...
JohnMC Posted February 27, 2009 Share Posted February 27, 2009 (edited) Is there anyway to do a _FileReadToArray with _INetGetSource without having to download the .txt file to disk..??I have a hosted .txt file that has a website URL on each line that needs to get read into an Array so that i can use each URL on the .txt in a For Statement..??you should be able to use _INetGetSource to get the file to memory then use string split with a line end characteredit: read help file notes about using @CRLF... you should only use @CR OR @LF Edited February 27, 2009 by JohnMC https://johnscs.com Link to comment Share on other sites More sharing options...
James Posted February 27, 2009 Share Posted February 27, 2009 Could you not use the _IE functions and read the body data? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
JohnMC Posted February 27, 2009 Share Posted February 27, 2009 Could you not use the _IE functions and read the body data? ya, but my guess is by saying hes getting a .txt file, its only raw data, not html #include <INet.au3> $source=_INetGetSource ("http://www.myurl.com/file.txt") $source_array=StringSplit ($source,@CR) should be whats needed here https://johnscs.com Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now