Tellblom Posted February 14, 2010 Share Posted February 14, 2010 I Use this code when getting a html page to the local disk Local $hDownload = InetGet("http://www.mywebpage.com/search.asp?q=" & $PartNumber, @ScriptDir & "\temp.dat", 1, 1) Do Sleep(250) Until InetGetInfo($hDownload, 2) ; Check if the download is complete. InetClose($hDownload) When I later on tries to read from the temp.dat file It does not work. $file1 = FileOpen(@ScriptDir+"\temp.dat", 0) $line2 = FileReadLine($file1,1) MemoWrite( "WebLine=" & $line2) get no error, $file1 returns a filehandenumber but $line2 is blank If I manually copy the file to a different file the problem persists. If I open the file in Notepad and copy the text and the paste it in another file then I can get a value to $line2 What have I done wrong? Link to comment Share on other sites More sharing options...
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 account
Already have an account? Sign in here.Sign In Now