justinmeza / lci

A LOLCODE interpreter written in C.
http://lolcode.org
GNU General Public License v3.0
784 stars 105 forks source link

File I/O not working #45

Open ofekih opened 7 years ago

ofekih commented 7 years ago

The fopen test fails:

HAI 1.4
    CAN HAS STDIO?
    I HAS A file
    file R I IZ STDIO'Z OPEN YR "read.dat" AN YR "r" MKAY
    file R I IZ STDIO'Z OPEN YR "write.dat" AN YR "w" MKAY
    file R I IZ STDIO'Z OPEN YR "write.dat" AN YR "a" MKAY
    file R I IZ STDIO'Z OPEN YR "write.dat" AN YR "r+" MKAY
    file R I IZ STDIO'Z OPEN YR "write.dat" AN YR "w+" MKAY
    file R I IZ STDIO'Z OPEN YR "write.dat" AN YR "a+" MKAY
KTHXBYE

Saying: variable does not exist: STDIO

leyarotheconquerer commented 6 years ago

This sounds a lot like you're not working with the future branch. CAN HAS STDIO? is only available in the future branch, and you'll need to rebuild the project once you switch branches.

My tests seem to work just fine with your sample code. If your error persists, could you give us more information about your build environment?