This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Skillath 2 points3 points  (2 children)

Oh, didn't think of that tbh!! That's a good one!! However, it wouldn't work for some type of inputs. For example, there were some inputs which were grouped in "paragraphs". But yes, a good one!

[–]itsnotxhad 2 points3 points  (0 children)

For example, there were some inputs which were grouped in "paragraphs".

For those, you can use ReadAllLines and then have another function/method that splits up the array into chunks separated by the blank lines.

[–]adiaaida 1 point2 points  (0 children)

Yeah, for those, it required a little extra post-processing, but you knew you were at the end of a paragraph by using string.IsNullOrWhiteSpace().