Exemplo n.º 1
0
        private void writeDisk()
        {
            string content = richTextBox1.Text;

            textFile.size = (content.Length * 4).ToString() + "B";
            releaseBlock();
            textFile.indexPointer = bitMap.write(content);
        }
Exemplo n.º 2
0
        private void writeDisk()
        {
            string content = richTextBox1.Text;

            //设置文件大小与文件内容
            textFile.size = (content.Length).ToString() + "B";

            //更新内容时先把磁盘上的块全部置为可用
            releaseBlock();

            //更新文件指针并写入内容
            textFile.indexPointer = bitMap.write(content);
        }