Deleting and creating text files in C++

Go4Expert Member
8Aug2008,00:10   #1
Andres's Avatar
How can you create a text file, write info in it, and then delete it. I know how to wright into it or extract info out of it, but I really don't know the code for creating or deleting txt files. Can someone please help me?
Go4Expert Founder
8Aug2008,09:15   #2
shabbir's Avatar
Check the API DeleteFile for Windows. If you are using linux I am not sure about it.