Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #55.1K
~2K People Reached
Favorite Forums
Favorite Tags
2 Posted Topics
If the function contains just one recursive function call, then it's true that expressing the function iteratively is often fairly simple. But tree-walking algorithms that contain two or more recursive function calls are much more natural when expressed recursively. This recursive example walks a binary tree. Is there a simple …
You're reading the file status once outside of the while loop, so it never changes. You should re-read it every time around the loop.
The End.