MiniMe
03-11-2004, 04:57 PM
Hi,
I wonder if somebody could help me here. I have a text file 'Teams.txt' which contains the following:
Wolves vs Charlton Athletic
2
A
Monday
"12:00"
1
RCB
Week No
#2004-03-08#
Wolves vs Fulham
1
A
Monday
"12:00"
2
EHB
Week No
#2004-03-08#
... more teams here
The sequence is repeated after 9 entries, for each fixture. The fixture has information such as time, day, date pitch no etc associated with it. What I want to be able to do is (because there will always be 9 entries) extract the first entry for as many fixtures in the text file. So in effect, what I will end up with is:
Wolves vs Charlton Athletic
Wolves vs Fulham
I have supplied the code I am using to read the file but I've become a bit stuck and would appreciate any help on this matter.
Open App.Path + "Teams.txt" For Input As #1
Do While Not EOF(1)
Line Input #1, strLine
............
Loop
Close #1
Thanks a bunch guys,
MiniMe
I wonder if somebody could help me here. I have a text file 'Teams.txt' which contains the following:
Wolves vs Charlton Athletic
2
A
Monday
"12:00"
1
RCB
Week No
#2004-03-08#
Wolves vs Fulham
1
A
Monday
"12:00"
2
EHB
Week No
#2004-03-08#
... more teams here
The sequence is repeated after 9 entries, for each fixture. The fixture has information such as time, day, date pitch no etc associated with it. What I want to be able to do is (because there will always be 9 entries) extract the first entry for as many fixtures in the text file. So in effect, what I will end up with is:
Wolves vs Charlton Athletic
Wolves vs Fulham
I have supplied the code I am using to read the file but I've become a bit stuck and would appreciate any help on this matter.
Open App.Path + "Teams.txt" For Input As #1
Do While Not EOF(1)
Line Input #1, strLine
............
Loop
Close #1
Thanks a bunch guys,
MiniMe