I have a text file with records made up of 6 lines.
I need to read each record of 6 lines into an array. Sort alphabetically on the first record then recreate the file so its in alphabetical order.
In the example, there are two records made up of 6 lines each.
Can anyone assist with this logic? I can find examples when the file is in CSV format but this file structure is weird.