i want to write data to text file and then run the text file... how can i do it ???
Code:links = WebBrowserExtension.GetLinks(); for i, v in links do --how to write links to txt file ??? end
Professional Software Development Tools
i want to write data to text file and then run the text file... how can i do it ???
Code:links = WebBrowserExtension.GetLinks(); for i, v in links do --how to write links to txt file ??? end
Hi,
Do you mean something like that ?
thanks but not what i want !!! what i want is;
get links from the page and save it to txt file and run the text file...
something like that but this doesnt work...
Code:links = WebBrowserExtension.GetLinks(); TextFile.WriteFromString("AutoPlay\\Docs\\links.txt", links, true) File.Run("AutoPlay\\Docs\\links.txt", "", "", SW_SHOWNORMAL, false);
it doesnt write data to txt file !!!
Code:links = WebBrowserExtension.GetLinks(); for i, v in links do TextFile.WriteFromString("AutoPlay\\Docs\\links.txt", v, true) end File.Open("AutoPlay\\Docs\\links.txt", "", SW_SHOWNORMAL);
Try to check tbl links for being empty... perhaps it doesn't contain anything so the for loop won't do anything.
Code:links = WebBrowserExtension.GetLinks(); if(links)then for i, v in links do TextFile.WriteFromString("AutoPlay\\Docs\\links.txt", v, true) end else Dialog.Message("Error", "No links retrieved"); end File.Open("AutoPlay\\Docs\\links.txt", "", SW_SHOWNORMAL);
thanks C B programming and webdesign
but is it possible to r/n/ after everylink in txt file ???
example txt file :
Code:www.google.com www.msn.com www.yahoo.com
Sure, just add the red part
Code:links = WebBrowserExtension.GetLinks(); if(links)then for i, v in links do TextFile.WriteFromString("AutoPlay\\Docs\\links.txt", v.."\r\n", true) end else Dialog.Message("Error", "No links retrieved"); end File.Open("AutoPlay\\Docs\\links.txt", "", SW_SHOWNORMAL);