Read out a config- file
#1

Hello to everybody around here,

I searched a long time ( in the sa-mp wiki too ) but couldn't find any solution for my problem.

I have a little text file in my scriptfiles and I want to read it out.
If one line says for example "version 0.5" I want to search for the string "version" and save the 0.5 in a variable.
I know how to read out a file with "fread" and but i can't extract different parts and split them up the like a version number.

It would be nice if s.o. is able to help me.
Reply


Messages In This Thread
Read out a config- file - by [MF]FACE - 11.12.2010, 13:20
Re: Read out a config- file - by legodude - 11.12.2010, 14:35
Re: Read out a config- file - by XePloiT - 11.12.2010, 14:48
Re: Read out a config- file - by [MF]FACE - 11.12.2010, 16:55
Re: Read out a config- file - by MadeMan - 11.12.2010, 17:05
Re: Read out a config- file - by [MF]FACE - 11.12.2010, 17:08

Forum Jump:


Users browsing this thread: 1 Guest(s)