Jump to content

Save Source


YoseMite
 Share

Recommended Posts

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...