Fred James wrote:
> Michael Robinson wrote:
>   
>> I'm trying to write a simple C program to open a text file with
>> temperature data in it, 
    FILE *fpin = fopen(inputfilename, "r" );

>> extract the highest, the lowest, and the
>> last temperature, and write that information to another text file.
>>     
    FILE *fpout = fopen(outputfilename, "wt+" );
>> How in C do I verify that the files I'm working with are text files?
>> Specifically since I don't allow clobbering, I'm worried about the 
>> input file.
>>     

Fred:
Look at "man fopen".
Wayne

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to