Results 1 to 2 of 2
  1. #1
    Addez is offline Senior Member
    Join Date
    Aug 2009
    Rep Power

    Default How do you find the OS specific linebreaker?

    Im writting a program that reads and writes on a file.
    But the problem is, adding "\n" doesnt make a new row when u add it to a txt format.
    I remeber someone told me a way to get the line breaker of the OS, but I cant find that solution again (since I accidently delete almoste all my scripts)

    So can someone help me find it?

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Rep Power


    Use a PrintWriter to write the file and call println on it.

Similar Threads

  1. How to get value of specific child node
    By sito42 in forum New To Java
    Replies: 1
    Last Post: 07-13-2009, 01:00 PM
  2. Replies: 0
    Last Post: 05-13-2009, 04:55 PM
  3. HashMaps get key for a specific value
    By andre1011 in forum Advanced Java
    Replies: 2
    Last Post: 03-11-2009, 03:30 AM
  4. Replies: 2
    Last Post: 11-08-2008, 11:40 AM
  5. Rejecting connections from a specific IP
    By javaplus in forum Networking
    Replies: 2
    Last Post: 12-21-2007, 03:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts