Jump to content

write responsetext on a file


Piyush
 Share

Recommended Posts

$file=fileopen("c:\goog.html",8)
filewrite($file,$responseText);   responseTExt--which i got through XMLHTTP
FileFlush($file);saving the file...

But this did not wrote anything in the file...Is this code valid.....??

Thanks..

Edited by Piyush

[font="Comic Sans MS"][size="7"]Piyush.....[/size][/font][font="Palatino Linotype"][size="2"]Some Of My Scripts...Cool Font Generator Train Searcher and Tracer[/size][/font]

Link to comment
Share on other sites

Hi,

try

$file=fileopen("c:\goog.html",1) or

$file=fileopen("c:\goog.html",2)

If you need directory creation

$file=fileopen("c:\goog.html",9) or

$file=fileopen("c:\goog.html",10)

you will find more details in helpfile -> FileOpen

;-))

Stefan

Link to comment
Share on other sites

Hi,

try

$file=fileopen("c:\goog.html",1) or

$file=fileopen("c:\goog.html",2)

If you need directory creation

$file=fileopen("c:\goog.html",9) or

$file=fileopen("c:\goog.html",10)

you will find more details in helpfile -> FileOpen

;-))

Stefan

is file flush right coomand to save file...

[font="Comic Sans MS"][size="7"]Piyush.....[/size][/font][font="Palatino Linotype"][size="2"]Some Of My Scripts...Cool Font Generator Train Searcher and Tracer[/size][/font]

Link to comment
Share on other sites

I don't find FileFlush in the help file. Is this a function you or someone else wrote? Try FileClose instead.

you should update your autoit...

do file close saves the file.....

[font="Comic Sans MS"][size="7"]Piyush.....[/size][/font][font="Palatino Linotype"][size="2"]Some Of My Scripts...Cool Font Generator Train Searcher and Tracer[/size][/font]

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...