title: How do I create a file with boost filesystem without opening it
body: <p>In boost filesystem there is a function <code>create_directory</code> which creates a directory. How do I create a file? I could create one by defining a <code>boost::filesystem::ofstream</code> object but that would also open the file, so I would have to call <code>close</code> on it before I could do other stuff to it, like renaming or deleting. Is this the only way?</p>