User Control Panel
|
|
|
 |
Advertisements
|
 |
|
|
|
HELP US, HELP YOU!
|
| Author |
Message |
JTW God Like

Joined: 07 Mar 2004 Posts: 579 Location: Maidstone
  votes: 4
|
Posted: Wed Apr 26, 2006 7:06 pm Post subject: Open a file for reading and writing! |
|
|
Hi everyone. (is anyone actually out there?)
I am trying to get a file to open for reading and writing. i have tried
| Code: | | open (NEWSI, "> ./news1"); | but i cannot write to it as it is only open for output
and when i try | Code: | | open (NEWSI, "< ./news1"); | I cannot read it as it isn't open for input.
I know that >> opens it for data to be added. But i want it to be opened so it can be read and replaced.
Any help Much appreciated. _________________ "Help us, Help you" - BotDepot |
|
| Back to top |
|
 |
darkmonkey The Merovingian

Joined: 18 Apr 2004 Posts: 2557 Location: London, England
     votes: 7
|
Posted: Wed Apr 26, 2006 9:08 pm Post subject: |
|
|
Do it in two statements? _________________ ~ Josh
[ Need bot hosting on a dedicated server? PM me. ] |
|
| Back to top |
|
 |
|
|