I want to display some text based on the user inputs,Question here is i want to display it meaningful way.
For ex, if i gave length as 50, output is displayed with last word splitted and coming to new line, like "PAV" in one line
and "AN" in another line. actual word is PAVAN. so in such case the whole word will print on the next line instead of splitting.
1)split the text based on user input(length)
2)split it meaningfully.
Anyone suggest how to proceed for this.