Пример #1
0
    static int csharp_writefile(long L)
    {
        try
        {
            int nParamCount = FCLibHelper.fc_get_param_count(L);
            if (nParamCount != 2)
            {
                return(0);
            }

            string pcsPathName = FCLibHelper.fc_get_string_a(L, 0);
            byte[] fileData    = FCLibHelper.fc_get_byte_array(L, 1);

            System.IO.File.WriteAllBytes(pcsPathName, fileData);
        }
        catch (Exception e)
        {
        }
        return(1);
    }