AH
Size: a a a
AH
MV
AH
// Program description
private static IO<Unit> NumberLines(string path) =>
from lines in ReadAllLines(path)
from _1 in Log($"There are {lines.Count()} lines")
from _2 in Log("Pre-pending the line numbers")
let newLines = Enumerable.Range(1, int.MaxValue).Zip(lines, (i, line) => $"{i}: {line}")
let newFile = path + ".prefixed"
from _3 in WriteAllLines(newFile, newLines)
from _4 in Log($"Lines prepended and file saved successfully to '{newFile}'")
select unit;
AH
СС

MV

MV
СС
MV
MV
MV
СС
X
AH
AH
VS
VS
VS
MV