-- [ Picked text/plain from multipart/alternative ] Use filesystem->RemoveFile( szFilename, "MOD" ); // Use "MOD" to have root refering to your mod's folder, use "GAME" to refer to upper folder.
[EMAIL PROTECTED] 2007/12/2, Mark Chandler <[EMAIL PROTECTED]>: > > Ah using valves filesystem. I know how to delete a file in raw c++ but I > don't want to do it in it. > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Nick > Sent: Sunday, December 02, 2007 3:08 PM > To: [email protected] > Subject: Re: [hlcoders] Easy way to delete files > > 1. > // Snippet to delete files > 2. > > 3. > > 4. > #include <iostream> > 5. > > 6. > using namespace std; > 7. > > 8. > > 9. > int main () > 10. > { > 11. > > 12. > > 13. > if( remove( "C:\\File.txt" ) == -1 ) // You can change > this to a directory > 14. > // of > your file. > 15. > cout <<"Error deleting file"; > 16. > > 17. > else > 18. > > 19. > cout <<"File successfully deleted"; > 20. > > 21. > > 22. > return 0; > 23. > > 24. > } > > ? > > On Dec 1, 2007 11:33 PM, Mark Chandler <[EMAIL PROTECTED]> wrote: > > Im implementing a different save system for my mod than the one valve > uses. > > Its going well and works 100% except I cant find a function to remove > files > > form the users hdd. I have an erase button *which deletes the save) and > I > > want to remove the file that that save represents. Any ideas? > > > > Mark > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > -- ------------------- [EMAIL PROTECTED] -- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

