Hi
You are using low level read and write functions and data types.
Please, take a look at datalogging examples, to understand how to write and read log files.
Hope it helps.
Alipio
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------