Raised This Month: $ Target: $400
 0% 

Reading from a file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-28-2011 , 12:14   Re: Reading from a file
Reply With Quote #5

  • The whole reason the code is only executing one iteration of the while loop is because you are breaking from the loop after it executes once. Remove both of your "break;" statements and it will be fine.
  • The bracket directly under fgets() and the corresponding bracket are not needed as it isn't a conditional statement.
  • I recommend you use the flags "rt" for the second argument of fopen().
  • Why are you using parse()?
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode