Re: I/O functions, Appending files
Aliza R. Panitz (buglady@ability.net)
Thu, 18 Jan 1996 20:29:55 -0500 (EST)
> In Sams book, "Teach yourself Perl in 21 Days" it says that when you
> open a file in append mode, the existing contents are not destroyed, but
> you cannot read the file.
I don't know as much as I should about Perl's file handling capabilities,
but this sounds like a pretty standard definition of Append mode, as
implemented under a variety of operating systems.
> Is this true? If so wouldn't it make appending files useless using Perl?
It depends on what kind of functionality you want. For example, log
files are typically appended to by different processes over a period of
time. When the files need to be read, a different process does it.
It's true that append mode is not useful under as many circumstances as
read or write mode, but that's a far cry from making it useless...
- Aliza
--
Aliza R. Panitz http://www.ability.net/~buglady buglady@ability.net
AccessAbility Internet Services: http://www.ability.net
(Web page design and maintenance; Mail domain services, and more)