troubleshooting Question

Loop Through TXT File ...

Avatar of Jay-Shahj
Jay-Shahj asked on
C
12 Comments2 Solutions220 ViewsLast Modified:
Hi,

I'm completely new to C (I'm more of a PHP guy), so I hope someone can help me out with what I want to achieve.

I want to loop through a TXT file, such as:

apple
pear
banana
lemon

And do something with each string; output it with its length.

:-)

Thanks,

Jay

P.S. I'm using gcc to compile it on a Linux machine (via SSH) which has CentOS 4.5 as the OS.
ASKER CERTIFIED SOLUTION
hongjun

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 12 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros