什么是C#C"FILE*f;"?

Rel*_*lla 0 .net c c# c++ file

我是C#的初学者,我想知道如何用C#C编写

static void example(const char *filename)
 {
FILE *f;
outbuf_size = 10000;
outbuf = malloc(outbuf_size);

f = fopen(filename, "wb");
     if (!f) {
       fprintf(stderr, "could not open %s\n", filename);
         exit(1); 
  }

fwrite(outbuf, 1, outbuf_size, f);
fclose(f);
}
Run Code Online (Sandbox Code Playgroud)

请帮助.

BTW:嗯,我想提出的端口FFMPEG API的例子在这里使用Tao.FFMpeg(陶是围绕.NET包装C#..很老,sintax确切在FFMPEG本身),所以你可以请阅读一个告诉我错过在我的代码示例中......

我的问题是 - 我理解如何端口FFMpeg部分,我只是不知道如何端口文件IO部分\功能的方式有利于.Net

Don*_*nie 5

而不是为你编写所有代码,我将引导你到System.IO.File.