Reading String from File - Help
From: ali (tj_at_raha.com)
Date: 09/20/04
- Next message: ali: "Re: using malloc and calloc - help"
- Previous message: Ben Measures: "Re: A problem about [Data types:string] -Need help!"
- Next in thread: Paul F. Johnson: "Re: Reading String from File - Help"
- Reply: Paul F. Johnson: "Re: Reading String from File - Help"
- Reply: Chris \( Val \): "Re: Reading String from File - Help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 20 Sep 2004 00:35:41 -0400
Hi,
I have a file called input.txt, which has the following structure:
Arthur Mcenzie
50
Lee Xhu
20
I can succesfully read the file if it were numbers, but am having
problem reading the Full names, since I want to put them in char
array[30]
Anyone with some idea how i can manage this?
Thanks,
Ali
- Next message: ali: "Re: using malloc and calloc - help"
- Previous message: Ben Measures: "Re: A problem about [Data types:string] -Need help!"
- Next in thread: Paul F. Johnson: "Re: Reading String from File - Help"
- Reply: Paul F. Johnson: "Re: Reading String from File - Help"
- Reply: Chris \( Val \): "Re: Reading String from File - Help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]