donewith first code, simple mistakes, now corrected !
removed variable EOF_flag
half-file being not written, dont know why !! after doing so, further IEEE format will be done by fseek()