H
H
HelicoptersLive2016-04-25 22:03:07
hex
HelicoptersLive, 2016-04-25 22:03:07

It is necessary to automatically change the last 1 byte of a bunch of files. How and what?

In general, roughly speaking, there are a couple of thousand files, in each of them change one byte, the last one, for example, mb is there some kind of software, or any ideas how to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alex_ak1, 2016-04-26
@HelicoptersLive

Here it is:
FILE *f = fopen( fname, "a+" );
fseek( f, -1, SEEK_END );
byte b = 123;
fwrite(f, b, 1);
fclose(f);
Why change the last byte? What is the end goal? What algorithm to change?

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question