xboxscene.org forums

Author Topic: Can You Have An Openread & Openwrite At Same Time?  (Read 609 times)

SumDumGuy3

  • Archived User
  • Newbie
  • *
  • Posts: 48
Can You Have An Openread & Openwrite At Same Time?
« 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 <
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Can You Have An Openread & Openwrite At Same Time?
« Reply #1 on: September 04, 2004, 08:24:00 PM »

Anyways yes you can...

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

 <
Logged