Contributions are always welcome!
Feel free to open PR's with changes and upgrades.
Each written line of code is open to the public and freely available.
Do as you please with it, no responsability taken on the owners behalf.
Am not responsable for any damages or potential changes brought by other contributors, if any.
This code opens a file called "memory.dat" in read-write mode, reads 1024 bytes of data from the file into a buffer, modifies the data in the buffer by inverting each byte, writes the modified data back to the file, closes the file, and finally outputs a message indicating that the memory has been successfully read and edited.
If there is an error opening the file, reading from the file, writing to the file, or closing the file, an error message is displayed and the program terminates with a non-zero exit code.
Feel free to use any compiler you like! (https://gcc.gnu.org)
Make sure that before you compile the code, you read it and change it accordingly to fit your needs.