Original Post
suppose you're doing file IO fstream f("c:\test1\test2\test3\testfile.txt"); this would fail if any of the test1,test2,test3 folders didnt exist. does anyone know of a method(or a library or something) that will automagically handle the possibility that folders may not exist and automatically create them?