From: Peter Hickman Date: 2006-09-07T23:11:57+09:00 Subject: Re: Basic problems with accessing a file Is the gets giving you a string with a \n on the end? You might have to chomp it first.