Questions tagged [fputs]

Anything related to C or C++ standard library functions `fputs` (C) or `std::fputs` (C++). These functions are used to write a null-terminated string to an output stream.

Anything related to C or C++ standard library functions fputs (defined in <stdio.h> C standard header) or std::fputs (defined in <cstdio> C++ standard header). These functions are used to write a null-terminated string to an output stream.

See CPPreference.com:

123 questions
-3
votes
4 answers

Why the input "abc!!!" but the output is not "abc+++"?

I researching about input/output file.Below code relate some functions such as: fgetc(),fgets(),fputs(). i don't know why it does not work exactly as i want.Thank you so much ! Below is my code: #include int main() { FILE *fp; //FILE…
-3
votes
1 answer

fputs array inside for (C)

I'm trying to write inside a file the whole content of an array. Here is my code: fichier = fopen(patch, "w+"); if (fichier != NULL) { if(methode==1) { trieur(tableau, ttableau); int d; d=0; …
insidelulz
  • 167
  • 1
  • 2
  • 11
-4
votes
1 answer

Cannot read a file and get the outcome

I want to read the file and match 2 words first i connect with a socket get the input write it to a file then i wanna read that file and get the match of 2 words and do something afterword but seems like it doesn't work So here is the…
f00
  • 1
  • 1
1 2 3
8
9