in reply to Re: Read/Update File
in thread Read/Update File

I'd appreciate any HELPFUL input

file lock ?node_id=3989;HIT=file%20lock;re=N File Locking Tricks and Traps File Locking

Also, if you have a mult-user scenario, use a database (say like DBD::SQLite

Replies are listed 'Best First'.
Re^3: Read/Update File
by rpike (Scribe) on Aug 25, 2010 at 15:35 UTC
    Thank you for the post. Most helpful. :-) I've been trying to use +> to open the file for read/write purposes but cannot read the contents in. I'm trying to read the contents into an array such as (simpler version) but it isn't working :
    open (FH, ">+path"); my @lineArray = <FH>; print join("<br>", @lineArray); # nothing prints although the file do +es have content
    Is there something I have to do with buffering? Reading from the handle in this way is no good when opening for read/write? Any help on this would be most appreciated as well. Thanks.
      > means clobber (overwrite) file , means you get empty file each time, you want +< for read/write. See open