Hi folks...
I'm playing with some code I'm trying to write - I'm pretty crap but we all have to start somewhere. Basically, I have a file which contains a load of data. I need to pull the second from last item out of the file, and as the file is of varying length, I can't use the my normal method.
The end of the file looks like this :-
|981936627|Rich|127.0.0.1
I don't need the IP address at the end - well, not at the moment anyway - I just need the name next to it. In front of all that stuff can be anything between 5 fields and 500 fields, so I can't just open the file and parse through it.
If any magic workers are out there, some basic code to get me started would be excellent.
Thanks a lot,
Rich
www.mad-gamers.org.uk