The documentation of std::freopen doesn't say anything about such limitation.
Can you try to use a different way to open the file?
What is the exact error message?