00:02
Okay, this question asks us about the differences between reading from a text file versus a binary file.
00:11
And really, the main difference, which is the really important one, is with the binary file, you really need to have a better idea of what it is that you're retrieving from that file.
00:27
Because, let's say i had this data .com text file, the fact that these are all integers, does not really matter for the text case, but if this was a binary file, it matters the precision of these integers, or if they're strings, or chars, or et cetera.
00:51
So really, a more tricky file to read from a binary would be, let's say, add 123, then like 1 .5, then a, then b, c, and then like foster.
01:05
So this is pretty easy to read as a text file, but if this was stored in binary, i'd need a heads up because this is an int.
01:15
I need to know what type.
01:16
This is either a double, a float, or a decimal.
01:22
This is a car.
01:24
This is a car.
01:27
This is a car.
01:30
And then this is a string.
01:37
So i can read that.
01:39
But if it was a binary file, these would be a mess of zero and ones.
01:43
So you'd need to figure out where one ends and the other begins...