in reply to Re: Write to file, after manipulation
in thread Write to file, after manipulation

I actually didn't want anything to complex... All I wanted was a bot that would preform simple tasks (such as add/remove/list data basically, given the data from a file). Also, I wanted to read from the file, then replace whatever was in the file with the new manipulation. Will take a look at the above comments though, thanks :)

I plan on making a few *fun* bots, so I'll take a look at the above modules aswell =) Thanks!

Replies are listed 'Best First'.
Re^3: Write to file, after manipulation
by Aristotle (Chancellor) on Jan 28, 2003 at 11:53 UTC

    ibanix did answer your question - it's just somewhat overshadowed by his misc. comments in the top half of his node. The problem is you're opening the file for writing only, and then attempting to read from it.

    You may want to have a look at perlopentut sometime for some of the subtleties of working with files.

    Makeshifts last the longest.

      Will do, thanks. I got it working -- it may be a bit *simplistic*, but I just opened the file, read from it, closed it, then re-opened it for writing... I'm just stuck on one other little portion, but that's on the IRC side. Again, thanks -- I'll head over and take a look at that tutorial aswell.