"Hernan M. Foffani" <hfoffani at yahoo.com> writes: > My question is: > Is this code portable across different C stdio > libraries? I'm thinking in line delimiters here. > I suspect it is not :-( You are right, this is not portable. > Any other approach to this? Open the file in binary mode. Regards, Martin