Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > read file help
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 25676 of 27343
Post > Topic >>

read file help

by "George" <@[EMAIL PROTECTED] > Apr 17, 2008 at 11:42 PM

There is a file name file.txt with content below:
11    21    31    41
41    31    21    11
31    21    11    41

How can I read the file line by line, and then print the first three 
columns(separed by tab)?

Thanks for any idea.
 




 4 Posts in Topic:
read file help
"George" <@[  2008-04-17 23:42:55 
Re: read file help
Keith Thompson <kst-u@  2008-04-17 09:10:46 
Re: read file help
roberson@[EMAIL PROTECTED  2008-04-17 16:29:58 
Re: read file help
santosh <santosh.k83@[  2008-04-17 22:12:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Sep 6 22:03:11 CDT 2008.