Hi @PoohBear
Looks like you've got the idea - what does the history of your compose look like? It should show the fixed width file as input and an array of lines as output. I note you've split on \r\n. File encodings and return characters are a fun game. I've done a bit on it here https://www.damobird365.com/how-to-parse-a-csv-to-json-array-flow/
If you had a compose called FileContent, this expression should handle the encoding automatically and return to you an array of line objects.
if(equals(indexof(outputs('FileContent'), decodeUriComponent('%0D%0A')), -1), if(equals(indexof(outputs('FileContent'), decodeUriComponent('%0A')), -1), decodeUriComponent('%0D'), decodeUriComponent('%0A')), decodeUriComponent('%0D%0A'))
Please consider accepting my answer as a solution if it helps to solve your problem.
Cheers
Damien
Please take a look and subscribe to my YouTube Channel for more Power Platform ideas and concepts, or take a look at my website. Thanks