|
-
Aug 13th, 2007, 06:42 AM
#1
Thread Starter
Hyperactive Member
-
Aug 13th, 2007, 06:47 AM
#2
Re: VB 2005 - Saving To Text File - URGENT HELP NEEDED
Search around on this forum for StreamWriter, that ought to get you several examples of saving to text files, and probably a few of reading from them. I have a class I use for all of that, which I posted here a few months ago, but there are many other examples.
The biggest question will be when you save the labels. You would load them all on form load, I would expect, but the saving can happen at any time. How many labels are there?
My usual boring signature: Nothing
 
-
Aug 13th, 2007, 06:50 AM
#3
Thread Starter
Hyperactive Member
Re: VB 2005 - Saving To Text File - URGENT HELP NEEDED
Hi, there are 7 labels.
Thanks for the idea, I'll search for streamwriter now 
-----
knxrb
-
Aug 13th, 2007, 06:58 AM
#4
Re: VB 2005 - Saving To Text File - URGENT HELP NEEDED
I'd post some code, but I'm 3,000 miles away from any, so it just won't be happening. The search should turn up enough answers.
My usual boring signature: Nothing
 
-
Aug 13th, 2007, 06:59 AM
#5
Thread Starter
Hyperactive Member
Re: VB 2005 - Saving To Text File - URGENT HELP NEEDED
Thanks anyway
-
Aug 13th, 2007, 07:10 AM
#6
Addicted Member
Re: VB 2005 - Saving To Text File - URGENT HELP NEEDED
Hi, I'm not an expert programmer. But here's a simple example of how to write text to a file. Hope it helps.
Code:
Dim sw As New IO.StreamWriter("textfile.txt", False)
sw.Write(label1.text)
sw.Write(label2.text)
.
.
sw.Flush()
sw.Close()
-
Aug 13th, 2007, 07:51 AM
#7
Thread Starter
Hyperactive Member
Re: VB 2005 - Saving To Text File - URGENT HELP NEEDED
Thanks!
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
|