Since nodes don't have a file system, I'm afraid the question doesn't make much 
sense. If you were running on a platform that has a file system, I suppose its 
C library would provide fopen(), etc.

Michiel

 

From: [email protected] 
[mailto:[email protected]] On Behalf Of Oussama 
Ghorbel
Sent: woensdag 6 januari 2010 12:43
To: [email protected]
Subject: [Tinyos-help] Syntaxe of reading from a file

 

Hi

I want to know how to declare a file (in TinyOs) and how to read from a file 
and write to a file ... The idea is to do a compression opération at the image 
that i can read all value from a file and obtain the result in the another file.

I am using a C declaration and i want it with TinyOs... This is the code: FILE* 
FP; FILE* FP1; int A[4][4]; double z[4][4]; double z1[4][4]; int i=0; int j=0; 
char p[10]=" "; char aa[20] ; int temp; FP = fopen("C:\\a.txt", "r"); FP1 = 
fopen("C:\\b.txt", "w"); ....... Thanks in advance.[/quote]

 

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to