3

What identifier is expected here?

#import "rw.txt" rw

task main()
{
    if(rw != NULL)
    {
        OnRev(OUT_A,75);
        Wait(100);
    }
}

Error: # Error: Identifier expected

I don't seem to be able to find a API describing the NXC API very well..

1

The error was caused because the file rw.txt was not uploaded to the nxt performing:

 t2n -v -put rw.txt

Solved the problem.

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.