GithubHelp home page GithubHelp logo

add file 失败? about vdfat16 HOT 6 CLOSED

helloyym avatar helloyym commented on July 4, 2024
add file 失败?

from vdfat16.

Comments (6)

HelloYym avatar HelloYym commented on July 4, 2024

from vdfat16.

xunge avatar xunge commented on July 4, 2024

十分感谢回答,但是我在add file添加文件时无论输入任何文件名都提示我文件不存在。如程序第346行所示

    if((filefp=fopen(nam,"rb"))==NULL){
        printf("The file does not exist.");
        getchar();
        return;
    }
  1. nam 是否应该和readDisk() 函数一样需要和root连接?
  2. 既然前面已经删除了同名文件,为何还要判断文件是否存在?
  3. fopen 只是在内存中分配一个 file 结构单元,为何在执行程序时指针为空?
  4. 上述代码注释掉后程序直接停止运行,写入文件失败

还望有时间的时候进行解答,万分感谢

from vdfat16.

xunge avatar xunge commented on July 4, 2024

还请指教

#define FAT1    136
#define FAT2    192
#define DIR     248
#define DATA    280

程序初始定义的参数值是如何找到的?

from vdfat16.

HelloYym avatar HelloYym commented on July 4, 2024

from vdfat16.

HelloYym avatar HelloYym commented on July 4, 2024

from vdfat16.

xunge avatar xunge commented on July 4, 2024

感谢解答!写的真棒!

from vdfat16.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.