title: Trying not to overwrite a file in C?
body: <p>Hi I'm trying not to overwrite a file in C using fopen(file, "w");</p>
  
  <p>My question is the file already exists as a 10 MB file but when I used the fopen the file ends up becoming 1KB. I want to write something to the file but I want it to stay the same size as well. How would I accomplish this? I saw that the "a+" appends things to the end of the file but what if I want to write something to the beginning of the file without expanding the size? It's just an empty file</p>
  
  <p>Alternatively, is there a way to create a file in C with a certain size (such as 10MB)?</p>