Jump to content
ELFORUM - Forumul electronistilor

Problema cu fisier txt


satelit

Recommended Posts

Vreau sa fac un program in C care sa creeze un fisier txt si sa imi puna informatia pe coloane nu pe linii.Eu am facut unul simplu care scrie un string pe linii :char msg[]="salut";FILE* f = fopen("TEST.txt", "w");for (int i=0;i<10;i++) {fwrite(msg, strlen(msg), 1, f); } fclose(f);Acest program creeaza un fisier TEST.txt si scrie de 9 ori salut ,dar le scrie pe o linie,eu vreau sa-mi scrie pe o coloana.Daca vreti sa ma ajutati si pe mine.Va multumesc

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Archived

This topic is now archived and is closed to further replies.




×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.Terms of Use si Guidelines