Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
VB6 - input file!
Name: BlackFoxxg Date: April 24, 2009 at 04:14:58 Pacific OS: Windows XP Subcategory: General
Comment:
now i'm having a problem with Visual Baisc 6. I have a text file "file.txt" and i want to input that file into my code. The problem is i just want to input only one line from that file. For example: I have a variable is "phrase" (Dim phrase as string) now i want to input that "file.txt" and set Phrase = phraseinput ( phraseinput is one line from "file.txt"). More specific, "file.txt" contains some phrases such as "rock music", "hip hop music" .etc, now i want to set "phrase = rockmusic" or "phrase = hip hop music"....etc - so how can i do it! Thanks for helps. I tried but it just input the whole file and i can't set my "phrase" = "rock music" or "hip hop music" ever!
Name: andynet Date: April 26, 2009 at 13:25:52 Pacific
Reply:
You can try instr this will find charcters or words within text although you may have more than one instance of the word you are looking for and get the wrong line.
Summary: ok I have a VB6 program and one function is to send a NET SEND. it does this by accessing the Shell and sending the command "NET SEND " & hostname & " " & message & " > c:\netsend.txt" ok it does that...
Summary: yes...you need to make an entry in the registry for the extension...so, for example, if you wanted your program to open all files with the extenstion .abc, then you would go into registry, and make a ...
Summary: ok, i will admit i am truly lost and need help with this program. BELOW IS THE PROGRAM I HAVE SO FAR. I KNOW SOME PARTS OF THIS IS NOT CORRECT, BUT I NEED SOME ASSISTANCE WITH IT. write a function tha...