I have the following code, but even more is an algorithm but it is the final pint take more or less.
Code:
void function (char * insert) (
Fila * copy;
Long a;
assert (copy = fopen ( "copia.txt", "aw"));
fseek (copy, 0, SEEK_CUR);
= ftell (copy);
fprintf (stdout, "I'm in character% d \ n", a);
fputs (insert copy);
fputs ( "\ n", copy);
fclose (copy);
)
Main (void) (
char * [4] = ( "Hello", "Gold", "americas", "Eloisa");
int b;
char c [100];
char * d;
char insertion [20];
Fila * file;
if (! (file = fopen ( "file.txt", "r"))) (
fprintf (stdout, "Error opening \ n");
clearerr (file);
)
fgets (c, 50, file);
d = strtok (c, "");
while (d! = NULL) (
for (b = 0; b <4 b + +) (
if (strcmp ([b] d) == 0) (
fprintf (stdout, "% s% = s are equal \ n", [b] d);
fprintf (stdout, "Inserts word to enter \ n");
fscanf (stdin, "% s", & integration);
fprintf (stdout, "Thanks Wait .... \ n");
function (integration);
system ( "sleep 02");
Else ()
fprintf (stdout, "% s% = s are not equal \ n", [b] d);
)
)
break;
)
fclose (file);
return 0;
)
What I want is that the function which opens a file called 'copia.txt' for writing, there is some way to use fgets provided for positions after 11 characters and write from there and not just from the end (Seek_end) or the start (SEEK_SET) and could put the arrow after 11 characters and write there: /
Bookmarks