File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding Spaces and new lines to a text file

 
Raven Ramirez
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't find a way to make a new line and space user inputs on each entry


WHen the user inputs something I get this:
Clifford788.7Scooby1245.1

But I need it like this:
Clifford 7 88.7
Scooby 12 45.1

Please help
 
Raven Ramirez
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I solved it!! But now there's an extra space that was skipped at the top of the line in the text file like this:
"This line right here" <-------------
Tom 5 22.4
Henry 7 33.7

can someone help with that?

The only difference I changed:
 
Tony Docherty
Bartender
Pie
Posts: 2878
59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure exactly what you mean but you have added a space after outputting the weight which is not required.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic