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
Hello
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


IronRazer
P: 83
Hi,
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.
http://msdn.microsoft.com/en-us/libr...vs.100%29.aspx

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.
http://msdn.microsoft.com/en-us/libr...eamwriter.aspx
http://msdn.microsoft.com/en-us/libr...eamreader.aspx
Apr 8 '13 #2

Post your reply

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