I've been working on debbuging a project of mine and I'm stuck cause I want to be able to use a timer and read each line of a txt file and on every tick I want it to read the next line... any ideas?
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. :)
Hey, I have a weird Question on how to do something.
My Program saves to a certain file, and reads from it, but i have another one that is in a diffrent file and the files can have any name the user sets, because there are multiple of them that read the same way, the users reading the file don't know the name of it though, how do they select it without knowing the name? like adding the file names to a combo box. please respond
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!
id want to make uhm... some like ( fake ) login that can add lines ( makes a log file ) and not just overwrite it... if you could send me the code please...
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. :)
Does anyone know the code for editing the lines and saving them to the same file.
xxCHIZELxMYxNIZELxx 6 months ago
dude you are a life saver
poiuytreza11 6 months ago
Hi can you send me the code, so i dont have to type it :) Thanks nice video! Just what i needed! :)
FreaksFromSkalborg 8 months ago
this helped me making my software reading line by line. thank you
SentynelXS 1 year ago
@ddoodm Eehm, I use it? I'm not saying megatech is kind or something, he ain't, but VB is a language (as far as I know anyway ;))
lolmewn 1 year ago
I've been working on debbuging a project of mine and I'm stuck cause I want to be able to use a timer and read each line of a txt file and on every tick I want it to read the next line... any ideas?
xarisisvog 1 year ago
omfg!! thxx soo much this is not what i was looking for but CurDir() omg!! THX!!
Kidde15 1 year ago
@Kidde15 You can also use Application.StartupPath ;)
SaJi482a 1 year ago
@SaJi482a thx man!! ;D
Kidde15 1 year ago
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 1 year ago
@tungruffel
Yes, instead of using str1 = reader.ReadLine you can use str1 = reader.ReadtoEnd
PushXOR 1 year ago
@ddoodm i bet most of people out there use it
MegaTechHD 1 year ago
@MegaTechHD i actually really ment what i said urs (video) like ur is dumb :p ur dumb
MegaTechHD 1 year ago
@MegaTechHD Helpful tip - When insulting other's, or referring your own content; use porpper grammar.
ddoodm 1 year ago
wow thank you so much it really works..... God bless you dude....
raven007yt 1 year ago
thank you! helped with my coursework :)
ryanmanu2424 1 year ago
lol 1Mihailo is stalking you!!!!!!!!!!!!!
he owns 80% of the comments on this video!
btw how do you choose a spesific line in the textfile? say i have a text with 100 lines but i only need to read the 25th and 67th
cyberlord64 2 years ago
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 2 years ago
yep that's what i thought. it works preety fine too.
cyberlord64 2 years ago
Haha! Ok then! Great! Glad it works!
ddoodm 2 years ago
lol i also have the same thought haha
tpclhk 2 years ago
lol now i can post 1 comment....
and then i will be able to reply and rate only
1Mihailo 2 years ago
Hey, I have a weird Question on how to do something.
My Program saves to a certain file, and reads from it, but i have another one that is in a diffrent file and the files can have any name the user sets, because there are multiple of them that read the same way, the users reading the file don't know the name of it though, how do they select it without knowing the name? like adding the file names to a combo box. please respond
v1Broadcaster 2 years ago
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 2 years ago
Comment removed
1Mihailo 2 years ago
Comment removed
1Mihailo 2 years ago
Sure! :D Thanks for the comment!
ddoodm 2 years ago
Comment removed
1Mihailo 2 years ago
Take a look around google for VB registry or assign filetypes to VB app or somethings like that. :)
ddoodm 2 years ago
Comment removed
1Mihailo 2 years ago
id want to make uhm... some like ( fake ) login that can add lines ( makes a log file ) and not just overwrite it... if you could send me the code please...
1Mihailo 2 years ago
or exactly to be Multyplay lines write not read :P
( and if you can...please make it to not overwrite the txt log file )
1Mihailo 2 years ago
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 2 years ago
could you please just give me the code?
emailed or so... , im asking only for this :
how to code that streamwriter does not over write
asnwer soon please
1Mihailo 2 years ago
kinda funny , youre online right now
lol
1Mihailo 2 years ago
you have skype or msn?
1Mihailo 2 years ago
hey ddoodm whats your skype / msn ?
il add you
1Mihailo 2 years ago
im just asking for this : StreamWriter that does not overwrite ( im not english so please send me the code )
1Mihailo 2 years ago
great are his tutorials! i wood give em 100 starts ( 5 all of em ) if i could.lol
however still i search other things too...........like
fixing youtube comments , Auto Share blocks my comments and only allomws me to reply
lol
i can rate as well so sorry mate , ignore this mail
1Mihailo 2 years ago
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 2 years ago
Nice! 5/5
Thats what I was searching for!
thnx! :D
carnage95kid 2 years ago
Nice.
AeonHack 2 years ago
Haha! Those are some big words coming from a VB master! :)
Thanks a lot! :)
ddoodm 2 years ago