2

Why do I get this when trying to compile a contract?

root@caf8aac11bb2:/work/eosio.token# eosiocpp -o eosio.token.wast eosio.token.cpp 
eosio.token.cpp:8:10: fatal error: 'fstream' file not found
#include "fstream"
     ^~~~~~~~~
1 error generated.
1

Answering my own question. Simply, file operations are not possible in eos. They aren't meant for that. These type of actions can be fulfilled through the front end. The blockchain coding is like querying a database. ie. Only read and write are allowed.

| improve this answer | |

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.