Hey, i am making a program that will save some text from fields into a notepad, i have the save function worling perfectly but what i have no idea how to do is filling the fields with data from a saved notepad. I was planning to make a function that would search for a file (eg. account.txt) then it would load the data from that file into the fields on the form. Help! :@
Sylenas 0 Newbie Poster
Recommended Answers
Jump to PostDidn't quite get what you're trying to do.
But here's the basic idea, how you get data from a text line (VB2005 / .NET 2.0 and newer)
Dim FileText As String Dim FileLines() As String Dim OneLine() As String Dim SeparatorChar As String Dim i As …
Jump to PostI hope Tame did not say he want 10$ because I use his approach ;)
I normally charge 100$ per hour :D
Jump to PostYou are really VERY expensive to take 100$ for 7 line. :-O
I was talking about charges I use in my day-time job :) Here in DaniWeb I post and help on the volunteer basis. I have been a newbie once and got a lot of help at that time. …
Jump to PostSomething im not getting is what
Dim FileText As String = "Account: Apple" is for.That was just a short-hand example representing a single line which you've read from your text file.
If i have three different fields does that mean i make three different blocks of the code with …
Jump to PostThe above line will read the whole file at once. if the file is big it may lead to memory problem, I prefer to read line by line, I guess my code will be faster on PII with 64mb ram. :D
If you deal with small files (a few tens …
All 17 Replies
Teme64 215 Veteran Poster
samir_ibrahim commented: Cool Approach +1
Sylenas 0 Newbie Poster
samir_ibrahim 58 Junior Poster
Teme64 215 Veteran Poster
samir_ibrahim 58 Junior Poster
Teme64 215 Veteran Poster
Sylenas 0 Newbie Poster
Teme64 215 Veteran Poster
samir_ibrahim 58 Junior Poster
samir_ibrahim 58 Junior Poster
Teme64 215 Veteran Poster
Sylenas 0 Newbie Poster
Teme64 215 Veteran Poster
Sylenas 0 Newbie Poster
Teme64 215 Veteran Poster
Sylenas 0 Newbie Poster
Teme64 215 Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.