C
C
Chemodan2282020-02-26 08:57:53
C++ / C#
Chemodan228, 2020-02-26 08:57:53

How to remove a structure from a text file?

An array of structures is written to a text file, how can I remove an element of this array from a text file? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CityCat4, 2020-02-26
@CityCat4

Read
Delete element
Write
If the structure is binary, everything is done there literally in these three actions (if the structure is described in advance and there is a structural type). If the structure is textual, variable length - you might have to fuck around to find the boundaries of the element.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question