title: Delete a character from a file in C
body: <p>How can I delete few characters from a file using C program?</p>
  
  <p>I could not find any predefined functions for it.</p>
  
  <p>To understand the purpose, I am trying to send a file through a socket, if N bytes are sent successfully, I want to delete those bytes from the file. At the end, the file will be empty.
  Any other way to do this efficiently? </p>
  
  <p>Thanks
  Pradeep</p>