Computer ForumsComputers  

Go Back   Computer Forums > Programmers Lounge > Programming Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 09-07-2004, 09:44 PM   #1 (permalink)
Wizard Techie
 
Join Date: Mar 2004
Posts: 3,786
Default Text files

alrighty in vb 6 i want to read a text file c:\info.txt into strings

This is the text file

password
3
4
7

i want each line to be read into its own string.
also i want when a error occurs , eg not finding the file, i dont want the program to quit, i want the program to
msgbox ("error, sorry the file c:\info.txt cannot be found")

or something simelar
__________________
Core 2 Duo E6400, DFI Infinity 975X/G, 2x 512mb DDR2 667mhz, Albatron 7900gt, WD 200gb SATA, Samsung DVD-RW, Silverstone ST-50EF 500w PSU.
waynejkruse10 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:30 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0