PDA

View Full Version : Using a txt file to fill table


Rich_A06
05-19-2007, 12:51 PM
Hi, this is the table http://www.eoaa.org/events/GTR2/results/GTE_1_rd1_q.htm#

and this is the content in the txt file.


[Slot021]
Driver=Davide Balocco ITA
Lobby Username=DavidOne
Vehicle=Porsche GT3-RSR
VehicleNumber=4088
Team=GruppeM
QualTime=1:46.944
Laps=9
Lap=(0, -1.000, 1:52.050)
Lap=(1, 467.184, 2:02.301)
Lap=(2, 589.485, 1:46.919)
Lap=(3, 696.404, 1:46.234)
Lap=(4, 802.638, 1:52.277)
Lap=(5, 914.915, 1:50.675)
Lap=(6, 1025.590, 1:46.969)
Lap=(7, 1132.559, 1:46.383)
Lap=(8, 1238.942, 1:45.469)
LapDistanceTravelled=2627.976563
BestLap=1:45.469
RaceTime=DNF
Reason=0

[Slot022]
Driver=JoCa
Lobby Username=JoCa
Vehicle=Ferrari 360 Modena
VehicleNumber=3070
Team=Yellow Racing
Laps=11
Lap=(0, -1.000, 1:52.876)
Lap=(1, 476.952, 1:47.644)
Lap=(2, 584.595, 1:48.104)
Lap=(3, 692.700, 1:58.441)
Lap=(4, 811.141, 1:58.478)
Lap=(5, 929.618, 1:55.894)
Lap=(6, 1045.513, 1:45.232)
Lap=(7, 1150.745, 1:47.191)
Lap=(8, 1257.935, 1:46.135)
Lap=(9, 1364.070, 1:54.905)
Lap=(10, 1478.975, 2:00.489)
LapDistanceTravelled=4117.161133
BestLap=1:45.232
RaceTime=0:20:48.655

[Slot015]
Driver=Thierry Patator
Lobby Username=Thierry Patator
Vehicle=BMW M3 GTR
VehicleNumber=4142
Team=BMW Motorsport
QualTime=1:42.531
Laps=12
Lap=(0, -1.000, 1:49.715)
Lap=(1, 467.006, 1:48.201)
Lap=(2, 575.208, 1:43.646)
Lap=(3, 678.854, 1:43.706)
Lap=(4, 782.560, 1:42.539)
Lap=(5, 885.099, 1:42.966)
Lap=(6, 988.065, 1:41.546)
Lap=(7, 1089.611, 1:44.073)
Lap=(8, 1193.684, 1:42.205)
Lap=(9, 1295.889, 1:41.714)
Lap=(10, 1397.603, 1:43.307)
Lap=(11, 1500.910, 1:41.710)
LapDistanceTravelled=108.977707
BestLap=1:41.546
RaceTime=0:20:51.812

[Slot024]
Driver=Dougal
Lobby Username=dougal
Vehicle=BMW M3 GTR
VehicleNumber=4142
Team=BMW Motorsport
Laps=12
Lap=(0, -1.000, 1:45.385)
Lap=(1, 469.131, 1:43.130)
Lap=(2, 572.261, 1:43.394)
Lap=(3, 675.655, 1:42.028)
Lap=(4, 777.683, 1:42.672)
Lap=(5, 880.355, 1:43.846)
Lap=(6, 984.201, 1:41.679)
Lap=(7, 1085.880, 1:43.986)
Lap=(8, 1189.866, 1:41.888)
Lap=(9, 1291.754, 1:42.047)
Lap=(10, 1393.801, 1:46.559)
Lap=(11, 1500.360, 1:41.711)
LapDistanceTravelled=4145.632813
BestLap=1:41.679
RaceTime=0:20:51.262

[Slot023]
Driver=Pedro
Lobby Username=Szut
Vehicle=Ferrari 360 Modena
VehicleNumber=4067
Team=JMB Racing
QualTime=1:47.703
Laps=11
Lap=(0, -1.000, 1:55.375)
Lap=(1, 482.459, 1:51.258)
Lap=(2, 593.717, 1:56.278)
Lap=(3, 709.995, 1:47.091)
Lap=(4, 817.086, 1:49.123)
Lap=(5, 926.209, 1:47.789)
Lap=(6, 1033.998, 1:47.760)
Lap=(7, 1141.758, 1:46.715)
Lap=(8, 1248.473, 1:46.868)
Lap=(9, 1355.341, 1:50.757)
Lap=(10, 1466.098, 1:47.957)
LapDistanceTravelled=2374.889160
BestLap=1:46.715
RaceTime=DNF
Reason=9

[Slot014]
Driver=pande
Lobby Username=pande
Vehicle=Porsche GT3-RSR
VehicleNumber=4050
Team=Freisinger Motorsport
Laps=12
Lap=(0, -1.000, 1:49.000)
Lap=(1, 467.675, 1:44.435)
Lap=(2, 572.109, 1:44.158)
Lap=(3, 676.267, 1:42.653)
Lap=(4, 778.920, 1:41.935)
Lap=(5, 880.855, 1:44.029)
Lap=(6, 984.884, 1:42.125)
Lap=(7, 1087.010, 1:41.757)
Lap=(8, 1188.766, 1:41.977)
Lap=(9, 1290.744, 1:41.839)
Lap=(10, 1392.583, 1:41.564)
Lap=(11, 1494.147, 1:42.127)
LapDistanceTravelled=94.179146
BestLap=1:41.564
RaceTime=0:20:45.465

[Slot013]
Driver=Olaf Neumann
Lobby Username=Olaf Neumann
Vehicle=BMW M3 GTR
VehicleNumber=4143
Team=BMW Motorsport
QualTime=1:51.374
Laps=11
Lap=(0, -1.000, 1:56.318)
Lap=(1, 481.863, 1:50.616)
Lap=(2, 592.478, 1:53.354)
Lap=(3, 705.832, 2:06.657)
Lap=(4, 832.489, 2:06.448)
Lap=(5, 958.937, 1:58.997)
Lap=(6, 1077.934, 2:00.221)
Lap=(7, 1198.155, 2:14.517)
Lap=(8, 1332.673, 1:54.373)
Lap=(9, 1447.046, 1:49.121)
Lap=(10, 1556.167, 1:52.021)
LapDistanceTravelled=86.914001
BestLap=1:49.121
RaceTime=0:21:57.379

[Slot017]
Driver=Sanjo
Lobby Username=SANJO_NL
Vehicle=BMW M3 GTR
VehicleNumber=4142
Team=BMW Motorsport
Laps=12
Lap=(0, -1.000, 1:52.919)
Lap=(1, 472.237, 1:46.333)
Lap=(2, 578.569, 1:55.143)
Lap=(3, 693.713, 1:51.964)
Lap=(4, 805.676, 1:51.345)
Lap=(5, 917.021, 1:48.858)
Lap=(6, 1025.879, 1:46.569)
Lap=(7, 1132.448, 1:45.159)
Lap=(8, 1237.607, 1:50.748)
Lap=(9, 1348.355, 1:45.457)
Lap=(10, 1453.811, 1:48.620)
Lap=(11, 1562.431, 1:49.679)
LapDistanceTravelled=4047.108643
BestLap=1:45.159
RaceTime=0:22:01.301

[Slot018]
Driver=OzBoz_NL
Lobby Username=OzBoz_NL
Vehicle=BMW M3 GTR
VehicleNumber=4143
Team=BMW Motorsport
Laps=0
LapDistanceTravelled=3892.096924
RaceTime=DNF
Reason=1

[Slot010]
Driver=BUTTERFLY
Lobby Username=Butterfly
Vehicle=Porsche GT3-RSR
VehicleNumber=4050
Team=Freisinger Motorsport
QualTime=1:42.818
Laps=12
Lap=(0, -1.000, 1:51.467)
Lap=(1, 482.448, 1:45.883)
Lap=(2, 588.331, 1:46.073)
Lap=(3, 694.404, 1:55.297)
Lap=(4, 809.701, 1:45.495)
Lap=(5, 915.197, 1:44.696)
Lap=(6, 1019.892, 1:45.740)
Lap=(7, 1125.632, 1:43.591)
Lap=(8, 1229.224, 1:44.378)
Lap=(9, 1333.601, 1:43.817)
Lap=(10, 1437.418, 1:43.379)
Lap=(11, 1540.797, 1:43.284)
LapDistanceTravelled=33.697697
BestLap=1:43.284
RaceTime=0:21:33.272

[Slot000]
Driver=Ari Antero
Lobby Username=Ari Antero
Vehicle=BMW M3 GTR
VehicleNumber=4142
Team=BMW Motorsport
QualTime=1:41.011
Laps=0
LapDistanceTravelled=4053.244385
RaceTime=DNF
Reason=0

[Slot001]
Driver=Richard Anthony
Lobby Username=Rich_A
Vehicle=BMW M3 GTR
VehicleNumber=4142
Team=BMW Motorsport
QualTime=1:51.225
Laps=12
Lap=(0, -1.000, 1:44.710)
Lap=(1, 459.627, 1:42.315)
Lap=(2, 561.942, 1:54.725)
Lap=(3, 676.667, 1:43.246)
Lap=(4, 779.913, 1:42.351)
Lap=(5, 882.264, 1:42.920)
Lap=(6, 985.184, 1:42.789)
Lap=(7, 1087.973, 1:42.490)
Lap=(8, 1190.463, 1:42.363)
Lap=(9, 1292.826, 1:41.883)
Lap=(10, 1394.709, 1:40.759)
Lap=(11, 1495.468, 1:42.500)
LapDistanceTravelled=4040.340088
BestLap=1:40.759
RaceTime=0:20:47.159

[Slot002]
Driver=Speed - Racer
Lobby Username=Speed-Racer
Vehicle=Ferrari 360 GTC
VehicleNumber=4062
Team=GPC Giesse Squadra Corse
QualTime=1:52.043
Laps=12
Lap=(0, -1.000, 1:57.198)
Lap=(1, 472.908, 1:48.930)
Lap=(2, 581.838, 1:50.309)
Lap=(3, 692.146, 1:48.574)
Lap=(4, 800.720, 2:04.210)
Lap=(5, 924.930, 1:46.622)
Lap=(6, 1031.552, 1:46.799)
Lap=(7, 1138.351, 1:47.596)
Lap=(8, 1245.947, 1:45.709)
Lap=(9, 1351.656, 1:49.839)
Lap=(10, 1461.495, 1:49.192)
Lap=(11, 1570.688, 1:54.780)
LapDistanceTravelled=4054.709229
BestLap=1:45.709
RaceTime=0:22:14.658

[Slot003]
Driver=Boernie
Lobby Username=Boernie
Vehicle=Porsche GT3-RSR
VehicleNumber=4066
Team=Autorlando Sport
QualTime=1:43.094
Laps=12
Lap=(0, -1.000, 1:49.212)
Lap=(1, 468.341, 1:46.029)
Lap=(2, 574.370, 1:44.048)
Lap=(3, 678.418, 1:43.138)
Lap=(4, 781.555, 1:42.556)
Lap=(5, 884.111, 1:43.862)
Lap=(6, 987.973, 1:43.101)
Lap=(7, 1091.074, 1:43.493)
Lap=(8, 1194.567, 1:42.940)
Lap=(9, 1297.507, 1:43.024)
Lap=(10, 1400.531, 1:44.307)
Lap=(11, 1504.838, 1:44.617)
LapDistanceTravelled=4068.127197
BestLap=1:42.556
RaceTime=0:20:58.646



[END]

How do I go about writing a parser that is able to auto fill the table?