My guess without seeing your file is that it is longer than 11 characters, hence this:

Code:

while(!feof (in)) {

Never breaks you out of your loop.

02-18-2005

nizbit

The contents of d5.dat:

Code:

Isn't counting lines fun....

You should
see some interesting results.

Be careful to watch for newlines...

02-18-2005

nizbit

Ok I see what your saying.

02-19-2005

nizbit

Ok I figured out what I needed to do, but I get a coredump when I run in UNIX. In Windows, under bloodshed, the executable runs fine. I think the character count is off, but that shouldn't cause a coredump. This is what I got: