SD: seek and write seems not working!
hi guys,
i'm doing simple opening, seeking , writing operation sd file result appending content instead of writing @ seek position.
am wrong?
file thefile= sd.open(filename, file_write);
if (!thefile) return false;
thefile.seek(0x3ff00);
thefile.write(mybyte);
thefile.close();
return true;
i've dumped position() before , after seek operation , "pointer" move corrcty size() of fiel given address (0x3ff00) mybyte written @ location size() + 1...
 							i'm doing simple opening, seeking , writing operation sd file result appending content instead of writing @ seek position.
am wrong?
file thefile= sd.open(filename, file_write);
if (!thefile) return false;
thefile.seek(0x3ff00);
thefile.write(mybyte);
thefile.close();
return true;
i've dumped position() before , after seek operation , "pointer" move corrcty size() of fiel given address (0x3ff00) mybyte written @ location size() + 1...
what mean size() ?
is mybyte byte or char?
 							is mybyte byte or char?
            						 					Arduino Forum  						 						 							 >   					Using Arduino  						 						 							 >   					Programming Questions  						 						 							 >   					SD: seek and write seems not working!  						 					
arduino
 
  
Comments
Post a Comment