Hi, I'm not exactly sure what you are trying to do. Are you trying to open a file on a mote? A mote doesn't have a file system of the type that you are asking, they usually have external flash storages which you can read more about here: http://docs.tinyos.net/index.php/Storage . If you are trying to open a file on a desktop computer I guess writing a pure C program would be easier, you can find help about how to open and close files in C on different systems through a search engine.
/Henrik 2010/1/14 YUSNAIDI MD YUSOF <yusnaidi.md-yu...@newcastle.ac.uk> > Hi All, > > Does anybody knows how to read a text file (contained binary data) in nesC > (.nc) program?, and what the correct include file needed as well... > > I tried include the conio.h library from C and using FILE *fopen() but ncc > compiler flags me with this errors: > > warning: type defaults to `int' in declaration of `pFile' > conflicting types for `pFile' > previous declaration of `pFile' > implicit declaration of function `fopen' > initializer element is not constant > (near initialization for `pFile') > warning: data definition has no type or storage class > warning: declaration of `pFile' shadows global declaration > warning: location of shadowed declaration > old-style parameter lists not supported > warning: return-type defaults to `int' > warning: data definition has no type or storage class > > > thanks in advance... > > > Yusnaidi > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >
_______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help