JPG file gets currupted with no reason

Viewed 9

I have tried to do this experiment

  1. Get a jpg file
  2. Change the extension to .txt
  3. Open the file and add any string on the top
  4. Open it again, remove the string
  5. Change the extension back to .jpg

I expected that the file would open as usual, since it has the original content, but this does not happen. Why?

Note that, if instead I just do

  1. Get a jpg file
  2. Change the extension to .txt
  3. Change the extension back to .jpg

Everything works, and I cannot figure out why. P.S. I am a Windows 10 user.

0 Answers
Related