Search:

Type: Posts; User: SergeP

Search: Search took 0.01 seconds.

  1. I see! It makes sense now. Gracias!

    I see! It makes sense now.
    Gracias!
  2. scanf? How is it related to sprintf?

    scanf? How is it related to sprintf?
  3. Sorry, I forgot that. So can you answer me now?

    Sorry, I forgot that.

    So can you answer me now?
  4. sprintf returns random values upon unsuccessful conversion

    After running the following code 6 times and for different values of number, I get :

    number = 908
    str = 908.000000
    check = 10

    number = 98.7
    str = 98.699997
    check = 9
  5. Does this mean fgets() does not initially include...

    Does this mean fgets() does not initially include the NULL character?
  6. Wow, thanks. That does it.

    Wow, thanks.
    That does it.
  7. Unwanted line after printing string on console and also writing it to file

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

    int main()
    {
    char name[25];
    char surname[25];
    File* F = fopen("string test.txt","w");
  8. Wow, thanks so much. I've found a function...

    Wow, thanks so much.
    I've found a function fprintf(), it actually writes to a file and formats too.

    Thanks too for pointing the stuff about binary... I understood this now. ������

    Is it...
  9. Thanks ma'am. And is there a way to actually...

    Thanks ma'am. And is there a way to actually write the text (not the binary representation) i.e an alternative to fwrite?
  10. Strange characters and spaces in file when I write a structure in it.

    I am writing a structure to a file. Program compiled and executes successfully. In file, I get strange spaces and some character(not even on keyboard), including the structure.. Meanwhile when I read...
Results 1 to 10 of 10