Is there any way to read a text file and store the information to variables?
My file.txt is like,
Timestamp 1343872162
No.of tall 2
No.of long 5
tall1 171
tall2 172
long1 170
long2 168
long3 168
long4 166
long5 166
That is, I have to retrieve these values from that file as $time=1343872162, $tall1=171, $tall2=172,$long1=170 etc.
Any thoughts?
Thanks!
Try this: