- Home /
 
               Question by 
               Smaika · Jun 27, 2016 at 08:03 PM · 
                filesaveloadbinaryformatterbinary  
              
 
              How to delete created Binary files
So I followed this tutorial on how to Persist data and every thing working fine but how can I delete the file created when I called File.Create();? I know I can delete and save empty data to the same file so it would be empty but the file it self is still there is there a way to delete the file permanently for example File.Delete("Path");?
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by fafase · Jun 27, 2016 at 08:07 PM
Get ready to feel stupid:
https://msdn.microsoft.com/en-us/library/system.io.file.delete(v=vs.110).aspx
How the F** did I not see that!!!! I swear I looked at the File class how did it pass by!!!!
I know can you believe that !!!!! maybe when I was looking for it I used lower case F. Thanks anyway ;)
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                