Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Need Help Deleting A File, and Something Else

$
0
0
Ok, I'm currently in programming 1 in high school so don't make fun of my knowledge of vb.net. Ok, so first of all, this isn't for an assignment or anything like that.

I need help deleting a file when I click a button. Currently I am having all the things I type in an input box, saved to a text file. (I also need help with the code to create the text file, currently it just looks for the file and appends it each time). So basically, I want to be able to click a button and have the saved file delete itself. Is this possible?

The other thing I need help with is enabling a part of my code, by using a seperate form. Right now, in my code for the MainForm, I have it so when I click the button it opens a input box and everything I type is saved. Is there a way I can on a seperate form enable whether or not I want saving enabled? I'm writing to the file using steamwriter atm.


Thanks :P

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>