Creating a new line in Java with binary files

  • moxon
  • Born
  • Born
  • moxon
  • Posts: 2

Post 3+ Months Ago

: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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9090
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

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.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 68 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

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.