There are several ways to break a line when it reaches the end.
In a default command prompt for example, there are 80 characters in each line. Does that give you any ideas?