Creating a new line in Java with binary files

  • moxon
  • Born
  • Born
  • No Avatar
  • Joined: Jul 08, 2003
  • Posts: 2
  • Status: Offline

Post July 8th, 2003, 7:11 am

:cry: Does anyone know how to do a new line in java when you are writting to a binary file. I know you can use the newLine(); function when you are writing to a normal textfile, but what do you use when you are writting to a binnary file.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 8th, 2003, 7:11 am

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8934
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post July 8th, 2003, 1:52 pm

I do not think you can create new lines in binary file because all new lines are interpreted as a character. In an ASCII file newlines do not show as characters and instead create newlines as you intended.

Remember, all a newline is usually, is the ascii character 10 and ascii character 13, which is a Linefeed, and/or carriage return respectively. We normally just do not see them as characters as you would in a binary file.
Ozzu Hosting - Want your website on a fast server like Ozzu?

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 192 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.