I am not intimately familiar with how php reads the files, so I don't know a solution to your problem purely in PHP. This is one of the issues with high level languages; you don't have much control over anything specific.
Your presumption of notepad is correct, it only accesses the file when it needs to. Perhaps you would write a quick app in C to do your bidding with the file and call it via command line.
|