hi,
http://pike.ida.liu.se/generated/manual/modref/ex/predef_3A_3A/Stdio/File/cr...
claims that the default open mode is "rw", yet hilfe says different:
Pike v7.6 release 7 running Hilfe v3.5 (Incremental Pike Frontend)
Stdio.File("/tmp/ANNOUNCE")->mode();
(1) Result: 4099
Stdio.File("/tmp/ANNOUNCE", "rw")->mode();
(2) Result: 12291
is this a bug in the docs or in the implementation?
greetings, martin.
http://pike.ida.liu.se/generated/manual/modref/ex/predef_3A_3A/Stdio/File/cr...
claims that the default open mode is "rw", yet hilfe says different:
You should never use Stdio.File() with one argument anyway, unless you want the special file descriptors "stdin", "stdout" or "stderr".
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2004-09-29 10:43: Subject: Re: Stdio.File() bug?
http://pike.ida.liu.se/generated/manual/modref/ex/predef_3A_3A/Stdio/File/cr...
claims that the default open mode is "rw", yet hilfe says different:
From the source (Pike 7.6), the default mode is "r", which sounds less error prone to me :)
Just to be sure:
Stdio.File("/tmp/foo", "r")->mode();
(2) Result: 4099
-- Bertrand LUPART Linkeo.com - R&D | http://www.linkeo.com/ +33 1 72 71 71 82 | 17, rue de la Banque - F75002 Paris Systèmes de gestion d'email entrant | Email management systems
/ Brevbäraren
Stdio.read_file reads data while Stdio.File represents data. They are not directly interchangeable.
/ Martin Nilsson (DivX Networks)
Previous text:
2004-09-29 15:10: Subject: Re: Stdio.File() bug?
i disagree. if i want less errorprone, i'd use Stdio.read_file()
greetings, martin.
/ Brevbäraren
pike-devel@lists.lysator.liu.se