in reply to best way to read and save long list of words
So long as the time spent reading it and writing it is insignificant, I'd suggest leaving the file as it is. It's nice to be able to be able to edit the file without worrying about breaking a serialization format.
If reading and writing the file costs enough time to be worth looking at serialization, then I'd use serialization. But in that event, if it's a file you read often but edit infrequently, then I'd keep the text file as the 'master' so you can edit it and then run your serializer against it to generate the file you'd read frequently.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: best way to read and save long list of words
by GrandFather (Saint) on Apr 19, 2020 at 00:24 UTC | |
by davido (Cardinal) on Apr 19, 2020 at 04:52 UTC | |
by GrandFather (Saint) on Apr 19, 2020 at 05:41 UTC | |
Re^2: best way to read and save long list of words
by BillKSmith (Monsignor) on Apr 19, 2020 at 15:43 UTC |
In Section
Seekers of Perl Wisdom