I have a little problem and I can not find it back.
Here surely someone can tell me where I face:
It turns out that I have a .txt (Flat Text File) with the following content:
laps=0
flag=Green
flagimg=C:\Users\marklubi\Desktop\AppBackgrounds\[email protected]
pos1fname=William
pos1lname=Prince
pos1num=48
pos1time=17.883
pos1laps=5
pos1blap=3
pos1btime=15.969
pos1diff=
pos2fname=Colby
pos2lname=Horner
pos2num=15
pos2time=17.980
pos2laps=5
pos2blap=3
pos2btime=15.968
pos2diff=0.229
pos3fname=Ethan
pos3lname=Endicott
pos3num=00
pos3time=17.054
pos3laps=4
pos3blap=3
pos3btime=16.062
pos3diff=1.429
leaderfname=WILLIAM
leaderlname=PRINCE
leadernum=48
leaderblap=3
leaderbtime=15.969
fastestfname=CAMERON
fastestlname=YOUNG
fastestnum=34
fastestblap=3
fastestbtime=15.864
I pretend to read it from PHP and then with the generate an xml, or show it, whatever.
I know how to do it with file () and then separate the fields. But how could it be done for this case, where they are not line by line, but let's say, in "paragraphs".
The first is unique. The following ones are repeated (between 1 and 40 can be) and the last two are also unique.
Does anyone have any idea how to approach this -?
Of course, I thank anyone who can provide an idea.