Re: [PLUG] C question...

2010-02-27 Thread Fred James
Wayne E. Van Loon Sr. wrote: (omissions for brefity) Fred: Look at man fopen. Wayne Wayne E. Van Loon Sr. That is the correct answer, but the man pages on the only machine I have available at the moment, suggested that the answer might also be different on different OSs Regards Fred

[PLUG] C question...

2010-02-26 Thread Michael Robinson
I'm trying to write a simple C program to open a text file with temperature data in it, extract the highest, the lowest, and the last temperature, and write that information to another text file. How in C do I verify that the files I'm working with are text files? Specifically since I don't allow

Re: [PLUG] C question...

2010-02-26 Thread William A Morita
-Original Message- From: plug-boun...@lists.pdxlinux.org [mailto:plug-boun...@lists.pdxlinux.org] On Behalf Of Michael Robinson Sent: Friday, February 26, 2010 5:19 PM To: plug@lists.pdxlinux.org Subject: [PLUG] C question... I'm trying to write a simple C program to open a text

Re: [PLUG] C question...

2010-02-26 Thread Fred James
Michael Robinson wrote: I'm trying to write a simple C program to open a text file with temperature data in it, extract the highest, the lowest, and the last temperature, and write that information to another text file. How in C do I verify that the files I'm working with are text files?

Re: [PLUG] C question...

2010-02-26 Thread Tony Rick
On Fri, Feb 26, 2010 at 5:19 PM, Michael Robinson plu...@robinson-west.comwrote: I'm trying to write a simple C program to open a text file with temperature data in it, extract the highest, the lowest, and the last temperature, and write that information to another text file. How in C do I

Re: [PLUG] C question...

2010-02-26 Thread Michael Rasmussen
On Fri, Feb 26, 2010 at 05:19:24PM -0800, Michael Robinson wrote: I'm trying to write a simple C program to open a text file with temperature data in it, extract the highest, the lowest, and the last temperature, and write that information to another text file. How in C do I verify that the

Re: [PLUG] C question...

2010-02-26 Thread Wayne E. Van Loon Sr.
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.