[eluser]cinewbie81[/eluser]
Hi guys,
Again, it's CI irrelevant topic again ... but i just dont know how to get it done..
I have this myfile.txt located at /var/www/myproject/myfile.txt file as following:
Code:
StudentID: S0001
StudentName: Francis Light
Age: 20
Description: Francis light is bla bla bla
Now in my Controller, i want to assign each of the value from myfile.txt to a variable .. So that i have something like :
Code:
$studentID = "S0001";
$studentName = "Francis Light";
$Age = "20";
$Desc = "Francis light is bla bla bla"
How can i read from the file and assign it to the variable ? Anyone ??
Thanks in advance