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 > File handling c...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 24583 of 27695
Post > Topic >>

File handling code

by neha_chhatre@[EMAIL PROTECTED] Feb 14, 2008 at 09:37 AM

hey please help me execute the code on ubuntu in C

#include<stdio.h>
#include<stdlib.h>

int main()
{
	FILE *fp;
	char ch;
	float ticktock;
	int val;
	fp=fopen("pt1.txt","rb");

	while(!feof(fp))
	{

		sscanf(fp, "time=%f value=%d", &ticktock, &val);
		printf("%f",ticktock);
		printf("%d",val);


	}


}

please send reply as soon as possible its urgent
 




 5 Posts in Topic:
File handling code
neha_chhatre@[EMAIL PROTE  2008-02-14 09:37:14 
Re: File handling code
roberson@[EMAIL PROTECTED  2008-02-14 17:52:53 
Re: File handling code
santosh <santosh.k83@[  2008-02-15 00:12:00 
Re: File handling code
Keith Thompson <kst-u@  2008-02-14 10:53:54 
Re: File handling code
"Bartc" <bc@  2008-02-14 20:58:24 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Tue Oct 14 11:45:06 CDT 2008.