hi Mahesh 
if u really want to read integers from a .txt file using c program 
then read each character from the file and then check for each 
character if it's an integer,run a loop and accumulate the integer 
string,store it somewhere and then u can assign it to an integer using 
atoi().look for it in ur C compiler.
i hope this works.(i am assuming that u know file handling in c).
Saurabh Bhardwaj.
--- In [email protected], "umkatakam" <[EMAIL PROTECTED]> wrote:
>
> hey all
> can anyone tell how to read a list of integers from a .txt file 
using 
> a c-program .... the text file contains a number of integers 
seperated 
> by spaces and i have to read all da integers one by one till da end 
of 
> the file ....
> 
> mahesh
>


Reply via email to