Closed FraserGreenroyd closed 10 months ago
@alelom , as discussed, you should check if `allLines` is empty before running the `Aggregate`. If empty, just return `""`, otherwise, aggregate.
It is definitely cleaner than
allLines[allLines.Count - 1] = allLines[allLines.Count - 1].Remove(allLines[allLines.Count - 1].Length - 1); _Originally posted by @adecler in https://github.com/BHoM/File_Toolkit/issues/178#issuecomment-1887639880_
It is definitely cleaner than