Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Read From Array in package Write to text file  RSS feed

 
Anthony Gilke
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my first IO program! It creates the text file, but is empty! I'm at a point where even if I have it right I would still think I was wrong because I have been staring at it so long!

Any suggestions or detailed advice would be greatly appreciated!


Here is the IO




Here is the class with the array

 
Jim Pouwels
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't look at your code completely, but I'm noticing something weird when you're writing to the file:



What are you writing here? bPfile is an empty byte array with a number of elements that is equal to the length of the filename?? I don't get it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!