|
-
May 24th, 2017, 12:35 PM
#12
Re: Creating Text file in formload?
 Originally Posted by Dragnorian
Okay, I have figured out what I want to do. I am not looking for answers(full code) just a lead in the right direction. I want to use a timer and everysecond I want it to open that file with the number. Then assign a variable that number. Then subtract one. Save that number to the file, and repeat the process til it reaches 0. I am learning VB.NET in a very unusual way, I know. I have never done this before and am just simply looking for help or a push in the right direction. Thanks!
Ignoring all the noise from the other posts... look at ReadAllLines, ReadAllText, and WriteAllLines and WriteAllText ... since you're only reading one value (and presumably one line) the Lines and Text methods should produce the same result.
-tg
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|