• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

reading and printing a file gives a space every other character

 
Fritz Urling
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use iTunes to create a file (File -> export library -> save as '*.txt'). I can open the file with notepad, and it looks fine.

But when i open it with Java and print it, there is an extra blank character between each character


I use a hex editor to view the source file, and sure enough, every other byte is a null. Am I reading the file wrong? Here's the heart of my file reading:



[ August 25, 2007: Message edited by: Fritz Urling ]
[ August 25, 2007: Message edited by: Fritz Urling ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic