how to open file bat
#2

your code is wrong...
pawn Код:
if (strcmp(cmdtext,"/123123", true ) == 0 )
        {
        if(!fexist("file.bat"))
        {
         print("Your file does not exist");
        }
       else
       {
        new File:example1 = fopen("file.bat", io_readwrite);
        if(example1)
       
            fwrite(example1,"asdasd");//write the file
            fread(example1, "asdasd");
            fclose(example1);
        }
    }
    return 1;
        }
Reply


Messages In This Thread
how to open file bat - by Xeinss - 27.08.2014, 22:29
Re: how to open file bat - by Eth - 27.08.2014, 22:39
Re: how to open file bat - by Xeinss - 27.08.2014, 22:52
Re: how to open file bat - by Xeinss - 28.08.2014, 20:26
Re: how to open file bat - by Xeinss - 30.08.2014, 20:27

Forum Jump:


Users browsing this thread: 1 Guest(s)