Java Tutorial | Creating a datebase using RandomAccessFile | EP 2 | Reading from a File

preview_player
Показать описание
Hello and welcome to my Java tutorial, I will be mainly getting all the data stored into the file to the be viewed onto the console.
I have made a mistake if anyone can spot it, I'll give them a thumbs up LOL.

Here is the code for writeToFile class (no Comments):

Once again thanks for watching :D.
Рекомендации по теме
Комментарии
Автор

Could you replace the readByte 'for' loops with a seek function to 20 & another one to 40 (to get the pointer in the right place)?

tomcollproductions
Автор

It is a great video. I have a question that why "age" is 4 bytes? Could you please tell me why? Really thanks.

jianmudeng
Автор

I really like the video. Very helpful seriously. However, for some reason reading isn't working in my case. Any suggestions or changes that might help? I tried writing it down exactly as you did just to verify and it still didn't work. 

flyingpig