Hi,
It has been five years, now I am a bit rusty but hopefully it will remember everything, I tried to solve this problem myself but did not work.
I have a text file and I need to read each line and devide it into 8 digit chunks, and put it into an array. For example, I would like to put the following line into 8 digit chunks but the last chunck is shorter than eight digit so it has to be 7 in this case. Th last chunk can be between 1 and 8 digits:

`GRID 213736 15235.2 -2606.28596.178
$array[0] = "GRID "
$array[1] = " 213736 "
$array[3] = " "
$array[4] = "15235.2 "
$array[5] = "-2606.28"
$array[6] = "596.178"
`

Could you help? Thanks.

Comment onHow to divide a line from a text file into 8 digit chunksDownloadCode