їGuardar y Leer textos?
#7

LOL, Harrinston te dejo el cуdigo nada mбs para que tu cambiaras unas cosas
pawn Код:
new File:handle = fopen("tuarchivo.txt", io_read);
    if(fexist("tuarchivo.txt"))
    {
        new line[256],tmp[128],tmp2,Float:tmp3,Float:tmp4,Float:tmp5,Float:tmp6;
        while(fread(handle, line))
        {
            if(!unformat(line, "p<|>s[256]dffff", tmp,tmp2,tmp3,tmp4,tmp5,tmp6))
            {
                //Aquн las variables tmp almacenan la info
                // Donde tmp se guarda el texto, donde tmp2 se guarda el numero despuйs del texto y asн sucesivamente, estбn segun el orden del ejemplo que tu pusiste
            }
        }
        fclose(handle);
    }
EDIT: Aclaro que para que ese cуdigo funcione debes usar sscanf2
Reply


Messages In This Thread
їGuardar y Leer textos? - by The_Scripter_Zero - 01.03.2012, 16:26
Re: їGuardar y Leer textos? - by Harrinston - 01.03.2012, 17:40
Respuesta: Re: їGuardar y Leer textos? - by The_Scripter_Zero - 01.03.2012, 18:04
Re: їGuardar y Leer textos? - by LuisGraph - 01.03.2012, 18:24
Re: їGuardar y Leer textos? - by Harrinston - 01.03.2012, 19:37
Respuesta: їGuardar y Leer textos? - by The_Scripter_Zero - 01.03.2012, 20:17
Respuesta: їGuardar y Leer textos? - by Jovanny - 01.03.2012, 20:29
Re: їGuardar y Leer textos? - by Harrinston - 01.03.2012, 20:32
Re: їGuardar y Leer textos? - by LuisGraph - 01.03.2012, 20:40
Respuesta: їGuardar y Leer textos? - by [Nikk] - 01.03.2012, 20:42

Forum Jump:


Users browsing this thread: 2 Guest(s)