that's a different thing :)
thank you!
Type: Posts; User: Spedge
that's a different thing :)
thank you!
How can I skip new lines when reading from file?
Here is the source code...
int view_all_fields()
{
FILE *fp = fopen ( "db.txt", "r" );
i'm trying to make a function, which is searching a string in file. If the string exist it must be replaced with another one.
what is my idea...
I'm inserting string for searching
with fgets I'm...
I'm trying to make a function for replacing a string with another one in file. What I mean... I'm inserting some string ( ex. "asd") then a function get this string and search for it in a file; if...
I'm really appreciate your help! I've examed your code and I've got the idea! Now, I'll make my own code and I use it in my first C program :)
Can u give me an example of function which search for a string in a file?
I want to make a phone book. Phone book must have options for add, delete and find numbers. I've already done the add...
I've alredy correct my code. Now all is OK. Thanks for your help.
I'be correct the source code...
#include "stdio.h"
void add_field();
char name[20];
int phone;
so will u tell me how to correct this? what I must do?
full code
#include "stdio.h"
char name;
char phone;
int main()
Example:
1 printf ("Enter name: \n");
2 scanf ("%s", &name);
3 printf ("Enter phone: \n");
4 scanf ("%d", &phone);
5 add_field(name,phone);
6 ....