Eric Vitiello
- 6mo ·
-
Public·
-
social.pixels.pizza
Swift debugging driving me nuts. #helpMe
I have a multiline file that I’ve loaded into a string using String(contentsOfFile:encoding:)
I'm trying to split the string using “someString.components(separatedBy: "==========\n“)
But it... just doesn’t. I know that particular string does exist in the file multiple times.
If I change the separator to just a linefeed it does split the file into 1600 items just fine. So for some reason it's not finding the "==========\n“ ?
I'm stumped.