On 3/26/07, William Chops Westfield wrote: > > if (fopen(stuff, &myfile) != OK) then { > /* open error */ > } > while (!fileerror(myfile)) { > c = getchar(myfile); > : > } Does the above work for a zero length file? At EOF? Orin. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist