EOF in UNIX File
From: Scott T Johnson <sarek_at_cais2.cais.com>
Date: 1 Dec 1994 23:14:30 GMT
Message-ID: <3bllcm$531_at_news.cais.com>
Date: 1 Dec 1994 23:14:30 GMT
Message-ID: <3bllcm$531_at_news.cais.com>
I am working on a Pro*C program to load data into Oracle. For some reason, my program continues to read past the end of the file and insert garbage into my table.
I am using a while loop to retrieve each character. ex.
while (s=fgetc(file)!=EOF)
Why would this not stop at the end of file in UNIX?
THanks, Scott
--Received on Fri Dec 02 1994 - 00:14:30 CET
------------------------------------------------------------------------
Scott T. Johnson SHL Systemhouse, Inc. +1 703 438-7300
------------------------------------------------------------------------