I want to process and load a huge file (around 2GB). The file is a stream of characters with no line breaks. Every 81st character we have a new value. I was using Text::Wrap module to reformat the file into 80 columnar lines, store the result in another file and then load the reformatted file. This takes a lot of time. So I tried to make use of read in a while loop as follows:
which would eliminate the above mentioned step.
This works, but if the input line contains a special character like those that appear in French names, the program fails.
Please help.