why can’t you change a file name while said file is open?

704 views

why can’t you change a file name while said file is open?

In: Technology

2 Answers

Anonymous 0 Comments

You can, but the program that currently has the file open has to do it. Things go wrong when multiple programs try to read and write from the same file at the same time. If you rename the file, and try to save your work in a program that had the file open when you renamed it, it would probably create a new file with the old name. Easiest way to deal with this issue is to only let one program open the file at a time.

For more information, search for “lock contention”.

You are viewing 1 out of 2 answers, click here to view all answers.