Hi,
I am trying to open and read contents of a file using Matchbox (FS
library). The exact problem is that if i call the function
if (call FileRead.open("mem.txt") == SUCCESS)
{
dbg ("DBG_TEMP, "Success in file opening \n");
return SUCCESS;
}
else { dbg ("DBG_TEMP, "Failed to open\n");
return FAIL;
}
now this if statement always return "Success in file opening", that is, its
always true even if i delete the file which is to be opened.
Why is that so.?
Is there anything wrong with the Matchbox initialization or matchbox is not
ready for file opening.
If anyone can kindly help me in how to open and read contents of a file in
TinyOS. (For simulation in TOSSIM).
Thanx
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help