Have you looked what the contents of "foo.txt" are have this one?  Just being curious…