Advertisement

Text or Binary format ?

Started by April 17, 2001 07:27 AM
1 comment, last by NONO 23 years, 9 months ago
Hi For my 3D engine, I load models from text files... But I was wondering if binary files should be quicker to read... What do you think? NONO
Yes, they''re quicker because you can almost read the data directly into the variables.
Advertisement
binary format is MUCH BETTER! first of all, you can load data directly to your variables/structures/and so on. Binary files are also smaller then text files! Therefore loading is much quicker. The only drawback of binary files is that it''s harder to find mistakes in your load/save function as it''s not as clear as text file. Text files are sometimes used at the beggining, to get things going and later they are changed to binary files. I do not use text files at all thru.(well only to save error messages
With best regards, Mirek Czerwiñski

This topic is closed to new replies.

Advertisement