enter image description here

Here's a screenshot of the problem. This happened when I use eosiocpp to compile my .cpp file into .wast. Does the compiler not allow file reading?


The EOS smart contracts do not have file system. Thus, you cannot use file system functions.

Practical thinking for the homework:

  • Where would the file reside as the code is executed on a block producer? The block producers cannot access your hard disk.
  • Perhaps a different question: What tooling is available to understand the program flow in contracts and debug them?
    – jamesj629
    Jun 8 '18 at 19:15
  • Please use Ask Question button to ask a question, so it is properly discussed. Jun 12 '18 at 8:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.