SyntaxFix
Write A Post
Hire A Developer
Questions
You should try detect the first line.
Then the:
if(n == 0){ line = words[n]+"\n"; }
I'm not sure, but maybe it helps.