Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21920

[RESOLVED] help~

$
0
0
Hi...anybody outhere know what is wrong with my program??i cant read all the text from booklist notepad file..

here is my notepad file
"ISBN", "Author","Title","Price"
"1111","Sellappan","Database system","$28.0
"2222","Sellappan","Visual C++6",25.00
"3333","Pressman","Software Engineering",35.00
"4444","Wong","Photoshop 6",35.00
"5555","Turban","E-Commerce",40.00


and here is my vb 6.0 program
Private Sub Command1_Click()
Dim a, b, c, d, e As Integer
'open the file for reading (input), reference it as 1
Open "C:\Users\ERIN\Documents\booklist.txt" For Input As #1
'read four booklist from file # 1 and store the in variables a,b,c and d
Input #1, a, b, c, d 'read four booklist from the file
Print a, b, c, d 'print the ; booklist
Close #1 'close the file

Viewing all articles
Browse latest Browse all 21920

Trending Articles