How can I simulate a “locked” file (one which has a write lock)

前端 未结 4 1227
[愿得一人]
[愿得一人] 2021-02-05 09:37

I am trying to debug a problem where users occasionally have locked files which they try to open. The code appears to have correct exception handling but users are still report

4条回答
  •  执笔经年
    2021-02-05 10:27

    I am using this command prompt

    type yourfile.txt | more
    

    to insert inside yourfile.txt a very long text of "few pages" and want to pipe via | more to batch the insertion. However the file seems to lock, any reason why?

提交回复
热议问题