Sign in to follow this  
Followers 0
Gillboss

how save the file

10 posts in this topic

i have bot that write on some file..

but when i want send it to email, its cant because "the file using by other process".

so i have idea, before its send the file, to save and close the file and then send the file.

how do that?

Share this post


Link to post
Share on other sites



You, write a script that closes the file and saves the file...


" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

Share this post


Link to post
Share on other sites

Do you have a file handle like:

$file = fileopen("c:\test.txt")


" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

Share this post


Link to post
Share on other sites

Then all you have to do is:

fileclose($file)

And you should be good


" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

LOVE YOU ! :D:):D

edit:

how delete it? :D

FileDelete($file) ??

lol

Edited by Gillboss

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Yes.

It's Not A Puzzle.

Edited by Swift

Share this post


Link to post
Share on other sites

I think Gillboss may be getting it????? :D


" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

Share this post


Link to post
Share on other sites

ok lol ty =]

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  
Followers 0