Hi All, I want to overwrite a file.
Looking at: https://docs.perl6.org/routine/open I see ":truncate". This seems liek it will do the trick. Problem: I would like to read from the file first before truncating (ro). Is there a way to do this, or should I 1) open the handle with :ro 2) read what I want from it 3) close the handle 4) reopen the handle with :w and overwrite what I want? Many thanks, -T