Deleting and creating text files in C++

Andres's Avatar, Join Date: Jul 2008
Go4Expert Member
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?
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Check the API DeleteFile for Windows. If you are using linux I am not sure about it.