I’ve read here that editing a file in-place is not possible since it’s OS related and entirely independent of language. Why is that? Doesn’t the C standard fseek() define an in-place file write?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can seek in Python as well – the answer you linked is just pointing that you can’t insert in the middle of a file (
ABC->ABXC).If you seek and then write, whatever data is written overwrites the contents at that position of the file (
ABC->AXC).