Monkey
Store
Community
Apps
Contact
Login or Signup

How do i split string to lines?

Monkey Programming Forums/Monkey Programming/How do i split string to lines?

charlie(Posted 1+ years ago) 
Surely adding the newline character manually is a bad idea? Especially if you are loading it in from a file.

Personally, i'd be more inclined to work out how many times longer the string is that the horizontal area i'm trying to draw to, and split it at the previous space character.

Cheers
Charlie