Awesome Tutorial - Visual Basic - Read Multiple Lines From A Text File

preview_player
Показать описание
In this tutorial you will learn how to read multiple lines from a text file and output them onto separate text boxes!
Рекомендации по теме
Комментарии
Автор

THANK YOU THANK YOU THANK YOU!!!!
For someone who programs without any formal training, it seems like sometimes the easiest question can be the most difficult ones to find easy answers to!
This was also a critical code needed for my application - and I Thank You!
Good man, keep up the videos! I will like & subscribe!
Nice teaching!

GeekyGoodies
Автор

Thank You BIG TIME I just finished the Most critical part if my ongoing project.

marcus
Автор

Haha! Those are some big words coming from a VB master! :)

Thanks a lot! :)

ddoodm
Автор

Thank you very much sir. Works in c# as well

VojtyTouty
Автор

Haha! Yea! True! :P

I haven't used VB in ages, so I can't say I know any efficient way to do it. But I guess you could just repeat the readLine process 25 times and store the results in dummy variables. I know it's a dumb way to do it, but I can't remember the other ways. :)

Good luck with your app!

ddoodm
Автор

Take a look around google for VB registry or assign filetypes to VB app or somethings like that. :)

ddoodm
Автор

lol! Dude!!! So many comments! :D I was playing Sim City, so I didn't get the E-Mails.

I can't really send you the bode, buth because now I have to do some homework, and also because I'm more of a C programmer than VB. I forget pretty much everything about VB. :)

Sorry I can't really help right now. Ask on a forum (MSDN for example) and see what they say. :)

ddoodm
Автор

yep that's what i thought. it works preety fine too.

cyberlord
Автор

Nice video. Helped me alot! But is there any way I can read from a textbox with multiple lines?
Like "Line1 = textbox1.text line2 = textbox2.text" and so on...
Thanks!

tungruffel
Автор

Say I wanted to do the same thing but on a remote system, how can I code it so it reads another machine's file that's on the network?

sdaoud
Автор

hey can you make a tutorial for how to read a specific line in a text file please

basictek
Автор

Um... I sorta don't really get what you mean, but I guess you could store the textfile as a variable first, write to it and then save it again. :)

Good luck!

ddoodm
Автор


i want write a program with 10 log in id's and passwords . and log in & passwords are not in database . both are (log in & password)
in note pad . plz explain !! thank you !!

heartless
Автор

@MegaTechHD Helpful tip - When insulting other's, or referring your own content; use porpper grammar.

ddoodm
Автор

@Kidde15 You can also use Application.StartupPath ;)

SaJia
Автор

Uh. I don't really get the question and I'm in a bit of a rush, so please pardon me if this is wrong. :)

I guess you could set up a combo box and create an if statement that checks the selected option (string) and then runs my code for whatever file you want. :)

Sorry for the bad answer. I'm just about to have dinner. :) Good luck!

ddoodm
Автор

do you have to make a separate variable for each line of text you want to read and the "variable" = reader.readline every time? as i have lots of text i need to read and i can't do that every time. as i have a login style program with usernames and passwords stored on different files

Ryan-zhtz
Автор

Nice vid! how i can do it on only 1 textbox? i wanna do line per line but only in 1 textbox not in 2

lews
Автор

im just asking for this : StreamWriter that does not overwrite ( im not english so please send me the code )

Mihailo
Автор

hey can you make a tutorial for reading a specific line from text file in visual basic

basictek
visit shbcf.ru