Results 1 to 3 of 3
  1. #1
    javapro2015 is offline Member
    Join Date
    Mar 2013
    Posts
    4
    Rep Power
    0

    Default insert a newline when i am trying to write in a text file using writebytes

    how can I insert a newline when i am trying to write a record in a text file using writebytes?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default Re: insert a newline when i am trying to write in a text file using writebytes

    Quote Originally Posted by javapro2015 View Post
    how can I insert a newline when i am trying to write a record in a text file using writebytes?
    It usually doesn't makes sense to try to write bytes and to write text into the same file. Your file will always hold bytes, but it will either be a text file or not a text file, and you have to decide that before you will write any code. Perhaps you will want to give us more background into your actual problem.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: insert a newline when i am trying to write in a text file using writebytes

    You abandoned the first thread you started: Infinite loop with messgae null...why?

    Why should we expect any better behavior this time round?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 4
    Last Post: 05-27-2011, 05:13 PM
  2. write in a text file at the end
    By ahmakki in forum New To Java
    Replies: 0
    Last Post: 02-06-2011, 05:56 PM
  3. Replies: 6
    Last Post: 12-01-2010, 06:31 AM
  4. Help! - How to insert a new line to a text file
    By matpj in forum New To Java
    Replies: 13
    Last Post: 02-24-2010, 06:28 PM
  5. Replies: 8
    Last Post: 11-06-2009, 07:52 AM

Posting Permissions

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