Subj : Re: Wrong abt finished program - why no output? To : borland.public.cpp.borlandcpp From : maeder@glue.ch (Thomas Maeder [TeamB]) Date : Sun Aug 10 2003 10:52 pm "DAS" writes: > fd = open(argv[1], O_RDONLY | O_TEXT); open() returns -1 if the file can't be opened. As with every function call, the return value should be checked before assuming the call succeeded. .