Welcome Guest, Not a member yet? Register   Sign In
Read Content from a .txt file
#2

[eluser]Pascal Kriete[/eluser]
I hope you're not trying to store data this way. Having it in a db would be a lot more efficient.

More to the point, CI has a file helper that will give you the content of the file (if you're using plain old php try the file_get_contents function). Then you could split the returned string at the line breaks and get your data from those. I can post an example later if you're having trouble.


Messages In This Thread
Read Content from a .txt file - by El Forum - 01-16-2008, 04:41 AM
Read Content from a .txt file - by El Forum - 01-16-2008, 04:47 AM
Read Content from a .txt file - by El Forum - 01-16-2008, 07:36 AM
Read Content from a .txt file - by El Forum - 01-16-2008, 07:53 AM
Read Content from a .txt file - by El Forum - 01-16-2008, 07:11 PM
Read Content from a .txt file - by El Forum - 01-16-2008, 07:46 PM
Read Content from a .txt file - by El Forum - 01-16-2008, 09:46 PM
Read Content from a .txt file - by El Forum - 01-16-2008, 10:17 PM
Read Content from a .txt file - by El Forum - 01-17-2008, 12:30 AM
Read Content from a .txt file - by El Forum - 01-17-2008, 02:02 AM
Read Content from a .txt file - by El Forum - 01-17-2008, 07:28 PM
Read Content from a .txt file - by El Forum - 01-17-2008, 08:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB