1) Just do a loop and store them all.
2) The file will only be closed at the end of execution.
3) Yes, you can store as many of each of them that you want.
4) Byte takes only 1 byte and an Int takes 4 bytes.
2) The file will only be closed at the end of execution.
3) Yes, you can store as many of each of them that you want.
4) Byte takes only 1 byte and an Int takes 4 bytes.