📜  如何创建虚拟软盘: - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:13.183000             🧑  作者: Mango

代码示例1
using (FileStream fs = File.Create(@"myfloppy.vfd"))
{
    using (FatFileSystem floppy = FatFileSystem.FormatFloppy(fs, FloppyDiskType.HighDensity, "MY FLOPPY  "))
    {
        using (Stream s = floppy.OpenFile("foo.txt", FileMode.Create))
        {
            // Use stream...
        }
    }
}