xboxscene.org forums

OG Xbox Forums => Official MediaXMenu (MXM) Forum => Dashboard Forums => MXM ActionScripting Forum => Topic started by: SumDumGuy3 on September 04, 2004, 04:49:00 PM

Title: Can You Have An Openread & Openwrite At Same Time?
Post by: SumDumGuy3 on September 04, 2004, 04:49:00 PM
Hello all,

I am still working on my x-loader scripts and I was writing a script to allow you to have templates (for configuration files) and then open the template and write out to the resulting config file. I find though, that when I try to open the template to read from and the config file to write to, I get an error.

I have used the openread and openwrite before but I was closing the read file before I open the write file...  can you have them open at the same time? If so, any idea what I am doing wrong, and if not, then what is the handlename for?


Edit: Nevermind... not sure what I was doing wrong but I have it working now...

Thanks,
SumDumGuy



This post has been edited by SumDumGuy3: Sep 5 2004, 02:33 AM <
Title: Can You Have An Openread & Openwrite At Same Time?
Post by: flattspott on September 04, 2004, 08:24:00 PM
Anyways yes you can...

OpenRead InFile Z:\in.txt
OpenWrite OutFile Z:\out.txt

 <