Search Results

Showing results 1 to 19 of 19
Search took 0.01 seconds.
Search: Posts Made By: carobee ; Forum: C and child forums
Forum: C Feb 17th, 2009
Replies: 4
Views: 492
Posted By carobee
i dont whether it will work or not, did u try out strstr() funtion
Forum: C Jun 7th, 2008
Replies: 9
Views: 3,481
Posted By carobee
i want to give the sleep in seconds..
Forum: C Jun 1st, 2008
Replies: 9
Views: 3,481
Posted By carobee
i have tried with that but its is hardly giving me the desired effect
Forum: C May 29th, 2008
Replies: 9
Views: 3,481
Posted By carobee
Thanks Salem
how to increase it to seconds from milliseconds?
Forum: C May 11th, 2008
Replies: 9
Views: 3,481
Posted By carobee
hi all

i am using VC++ editor. Can anyone tell me how to insert sleep in my program? i have tried sleep(). but it is giving an warning

'sleep' undefined; assuming extern returning int.
Thanks...
Forum: C Mar 18th, 2008
Replies: 14
Views: 1,077
Posted By carobee
Sample code to help you

#include <stdio.h>

int main()
{
FILE *read, *write;
char Buffer[BUFSIZ];

if( ( read = fopen("x.txt", "r") ) == NULL )
Forum: C Mar 17th, 2008
Replies: 14
Views: 1,077
Posted By carobee
you can use fgets()
Forum: C Mar 17th, 2008
Replies: 14
Views: 1,077
Posted By carobee
first read the file line by line. copy the line content into a string. now use strtok () function to seperate the copied string contends.use atoi() function to tgake the numbers out.
For...
Forum: C Dec 27th, 2007
Replies: 21
Views: 2,670
Posted By carobee
ya thanks! but wht abt multiple entries? suppose i have checked the first entry in [MARKS] and want to check the next, how to proceed for that?
Forum: C Dec 19th, 2007
Replies: 21
Views: 2,670
Posted By carobee
a new problem ... when i am opening the new file it doesnot have anything. if i take to write only one parameter, like [MARKS] Physics=60
it will be written, but if i try to write multiple things...
Forum: C Dec 18th, 2007
Replies: 21
Views: 2,670
Posted By carobee
i think i nearly got it. thanks
Forum: C Dec 17th, 2007
Replies: 21
Views: 2,670
Posted By carobee
i thnk fprintf() is a better option
Forum: C Dec 17th, 2007
Replies: 21
Views: 2,670
Posted By carobee
by trying the way as suggested by u, shall i use fputs to write the string to new file. for reading from the file and putting to string i am using fgets()
Forum: C Dec 17th, 2007
Replies: 21
Views: 2,670
Posted By carobee
Is there any provision to delete some part of file?
Forum: C Dec 17th, 2007
Replies: 21
Views: 2,670
Posted By carobee
i havn't given any of the code. which code r u talking abt?
Forum: C Dec 17th, 2007
Replies: 21
Views: 2,670
Posted By carobee
i am able to extract from file. For eg lets take [Marks] Physics = 60
i am able to extract upto =60, but nw my problem lies that i am not able to replace with new value. how do i do that?
Forum: C Dec 14th, 2007
Replies: 21
Views: 2,670
Posted By carobee
no i haven't and want help in this regard
Forum: C Dec 14th, 2007
Replies: 21
Views: 2,670
Posted By carobee
i want to modify the current values. i feel i should first read the file upto some size into a buffer then in that buffer search for Marks (strstr). after that agn search for Physics in the same way...
Forum: C Dec 14th, 2007
Replies: 21
Views: 2,670
Posted By carobee
hi,

i wanted some help in File handling in C. consider i have one File like a.txt
a.txt

[Marks]

Physics = 60
Chemistry = 80 ;Prac(25)
Maths = 98
Showing results 1 to 19 of 19

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC