fiexed comparison between signed and unsigned integer in read_file