; I put "_" instead of a space)
There is a problem here that I didn't consider. If your line-length INCREASES,
then this whole idea is, sadly, rubbish :(
-Original Message-
From: Tom Reed
Sent: Wednesday, May 31, 2023 11:31 AM
To: Claude Brown
Cc: beginners@per
line has content that needs to change)
> {
>
> seek($fh, $startOfLine, 0) or die "seek: $!";
> print $fh $line;
> }
>
> $startOfLine = tell($fh) or die "tell: $!;
> }
>
> close($fh);
>
>
&
---Original Message-
From: Tom Reed
Sent: Wednesday, May 31, 2023 9:33 AM
To: Claude Brown
Cc: beginners@perl.org
Subject: RE: storage types for big file
> Do you have the option to "seek" to the correct place in the file to make
> your changes? For example, perhaps:
>
> Do you have the option to "seek" to the correct place in the file to make
> your changes? For example, perhaps:
>
> - Your changes are few compared to writing out the whole file
> - Your changes do not change the size of the file (or you can pad line-end
> with spaces)
>
1. each time just ch
but just a thought.
-Original Message-
From: t...@dkinbox.com
Sent: Tuesday, May 30, 2023 10:12 PM
To: beginners@perl.org
Subject: storage types for big file
Hello
I have a big file after making changes in ram I need to write it back to
disk.
I know for text file store it's writt
I haven't done this myself, but my first attempt would be with
https://metacpan.org/pod/Path::Tiny
using the spew_raw method.
On Tue, May 30, 2023 at 1:28 PM wrote:
>
> Hello
>
> I have a big file after making changes in ram I need to write it back to
> disk.
> I know for text file store it's
Hello
I have a big file after making changes in ram I need to write it back to
disk.
I know for text file store it's written line by line.
But is there any better storage type for high performance read/writing?
maybe binary?
Thank you.
--
Sent from https://dkinbox.com/
--
To unsubscribe,