hey i think u can use feof(FILE*) to check end of file 
regards

On Tue, 30 Nov 2004 03:36:58 -0800 (PST), Sreeram B S
<[EMAIL PROTECTED]> wrote:
>  
> 
> Hi Friends, 
> 
>    I have one query regarding the fscanf command, which can scan words from
> an opened file. My query is as follows: 
> 
>    Suppose, there is a file of 100 words and I have to access each word and
> so I wish/choose to use fscanf command. But, by using fscanf command once, I
> will get the first word. If I put this in a loop, I can move till the end of
> the file. Here is the problem. What should I specify the end-condition for
> the loop ( I cannot give it as EOF.. I guess). How do I use fscanf in a loop
> to access the contents of a file? 
> 
>   Kindly reply. 
> 
> Thanks, 
> 
> Sreeram
> 
>  ________________________________
> Do you Yahoo!?
>  Meet the all-new My Yahoo! â Try it today! 
> 
>  To unsubscribe : [EMAIL PROTECTED]
>  
>  
> 
>  
>  
>  Yahoo! Groups Sponsor 
>  
> 
> Get unlimited calls to 
> 
> U.S./Canada 
>  
>  ________________________________
>  Yahoo! Groups Links
>  
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/Programmers-Town/
>   
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> 
>





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~-> 

To unsubscribe : [EMAIL PROTECTED]

 
Yahoo! Groups Links

<*> To reply to this message, go to:
    
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4123
    Please do not reply to this message via email. More information here:
    http://help.yahoo.com/help/us/groups/messages/messages-23.html

<*> To visit your group on the web, go to:  
    http://groups.yahoo.com/group/Programmers-Town/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to