Jump to content
Sign in to follow this  
YoseMite

Save Source

Recommended Posts

YoseMite

Hi,

I want to make a application that save the web source to a *.txt file.

I use the function _INetGetSource and FileWrite.

But how can I work this two functions together?

#include <INet.au3>
ConsoleWrite(_INetGetSource('www.autoitscript.com'))

$file = FileOpen("C:\test.txt", 1)

; Check if file opened for writing OK
If $file = -1 Then
    MsgBox(0, "Error", "Unable to open file.")
    Exit
EndIf

FileWrite($file, ConsoleWrite(_INetGetSource('www.autoitscript.com')))

FileClose($file)

I have already view the helpfile for this function, but I can't find something..

Thanks,

YoseMite

Share this post


Link to post
Share on other sites
herewasplato

INetGet('http://www.autoitscript.com','C:\temp\test.txt')


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

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

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×