E
E
EgorBolotow2020-10-19 08:40:43
Database
EgorBolotow, 2020-10-19 08:40:43

What to choose text or binary file?

I started to write something like a subd in C. And I ran into the question of where to store data in a text file or a binary one, so that the program can then parse the data at the user's request? I'm worried about what will be more efficient in terms of memory and speed.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
cicatrix, 2020-10-19
@cicatrix

The binary is faster and more compact. Text is more convenient to process with external tools, but slow and cumbersome.

C
CityCat4, 2020-10-19
@CityCat4

Certainly binary.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question