problems with fopen - 08/03/04 11:16 PM
Apparently I didn't get noticed last time? New version and nothing done about it. I thought a fix would be simple.
the original post
the original post
alias nobug { var %a = $ticks $+ .txt .fopen -n abc %a .fseek abc 12 .fwrite abc 1 var %b = $fopen(abc).pos .fclose abc bread %a 0 13 &abc echo -ai %b -=- $file(%a).size <- They are the same, showing that /fseek actually did seek to that point before we wrote 1 byte. echo -ai $bvar(&abc,1-) <- 12 x $!chr(0) plus 1 $!chr(49) .remove %a }
while !$feof { .echo -q $fread(name,[color:plum]1048576[/color],&a) } echo -a $!feof: $feof -=- .pos: $fopen(name).pos