17.01.2010, 14:18
I am working on a private script, I need to know how to load from a file, a string.
the files set out will be like this:
[code=file]
0 Cadet
1 Agent
2 Special Agent
[/code]
I want to know is it possible to search for the number, then get the string after it. So if I would want to get Agent. I'd search for 1 but how do I rip Agent from the file and place it into a string?
Thanks
the files set out will be like this:
[code=file]
0 Cadet
1 Agent
2 Special Agent
[/code]
I want to know is it possible to search for the number, then get the string after it. So if I would want to get Agent. I'd search for 1 but how do I rip Agent from the file and place it into a string?
Thanks