The C freopen function allows changing the file modes of a currently open file. The function should be exposed via a std.stdio.File function as well. http://www.cplusplus.com/reference/cstdio/freopen/
https://github.com/dlang/phobos/pull/4822
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/d63572fd775920b8d78c263c95ac45f387c09ba6 Fix Issue 16544 - Add File.reopen https://github.com/dlang/phobos/commit/59b6392f2067d841385abd37c9eba45d18eaf7b7 Merge pull request #4822 from CyberShadow/pull-20160926-152950 Fix Issue 16544 - Add File.reopen
Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/d63572fd775920b8d78c263c95ac45f387c09ba6 Fix Issue 16544 - Add File.reopen https://github.com/dlang/phobos/commit/59b6392f2067d841385abd37c9eba45d18eaf7b7 Merge pull request #4822 from CyberShadow/pull-20160926-152950