By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,552 Members | 905 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,552 IT Pros & Developers. It's quick & easy.

I have 50 Bytes to save to disk 1 byte at a time

P: 1
Very new to this and need some simple help.
I have a number of bytes of data IE
pp1=10 and I want to save this to disk and read it back in when the program is started.
I am using VB 2010

Thank you
Apr 7 '13 #1
Share this Question
Share on Google+
1 Reply

P: 83
What is pp1=10 suppose to be for? If pp1 is a variable that needs to be set to 10 when the program starts then you can do this a few ways.

1. You could use the programs built in Settings to store the value and set pp1 to the programs Setting in the FormLoad event. Here is a link to find out more about using the settings.

2. you could save the value of the variable to a text file in the FormClosing event and load the value back in and assign it to the variable in the FormLoad event. Here is a link on using the StreamWriter and the StreamReader.
Apr 8 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.