Skip to content
Snippets Groups Projects
Commit 86f7b8a7 authored by Jaysimman  G's avatar Jaysimman G :computer:
Browse files

Conclusion of file operations in C

parent e8ea0768
Branches master
No related tags found
No related merge requests found
No preview for this file type
#include<stdio.h>
int main(){
FILE *fp;
fp = fopen("textdata.csv","w");
int no = 123;
char name[] = "Jaysimman";
int exp = 18;
fprintf(fp,"NO.,Name,Exp\n");
fprintf(fp,"%d,%s,%d\n",no,name,exp);
fclose(fp);
}
\ No newline at end of file
NO.,Name,Exp
123,Jaysimman,18
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment