thanks,but i did as you said but my program needs to erase contents of a file only in some situations,for example when user click the erase button then only contents of the file should be erased but in all other situations data should remain in text as it is.
thanks,but i did as you said but my program needs to erase contents of a file only in some situations,for example when user click the erase button then only contents of the file should be erased but in all other situations data should remain in text as it is.
Before delete the file, read the content and use the data based on your requirements.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.