Here is a bug when converting a txt file to a binary file in lab1. If the txt file doesn't end up with a new line, the last line of the txt file will be ignored (Because the recordcount won't be increased and the data in buff won't be written into the stream). Maybe it's not a problem.