Jump to content
Sign in to follow this  
whitts

Write from more than one array

Recommended Posts

whitts

I was wondering if we can write to a file from more than one array at the same time. e.g. I dont want to do it seperately because the second will over write the first.

_FileWriteFromArray("MyFile.txt",$Saved &$Second)

Share this post


Link to post
Share on other sites
Blue_Drache

I was wondering if we can write to a file from more than one array at the same time. e.g. I dont want to do it seperately because the second will over write the first.

_FileWriteFromArray("MyFile.txt",$Saved &$Second)

After the first write, close the file and then open it back up in APPEND mode.


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites
whitts

How do i open it back up in append mode?

Thanks

Share this post


Link to post
Share on other sites
PsaltyDS

I was wondering if we can write to a file from more than one array at the same time. e.g. I dont want to do it seperately because the second will over write the first.

_FileWriteFromArray("MyFile.txt",$Saved &$Second)

The _FileWriteFromArray() function opens the file in overwrite mode. I have submitted a modified version that allows you to pass a file handle instead, so you could open it in a different mode (even with Unicode parameters) before calling the function.

Until (if?) that change is accepted, you'll still have to hack that function or do your own.

<_<


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  

×