ye le code... #include int main(){ FILE *file = fopen("C:\\Users\\Dell\\OneDrive\\Desktop\ andi.txt","w"); fprintf(file,"meri file aayi desktop pe..."); fclose(file); if(file == NULL){ printf("location h hi nahi bc dekh le ek baar dhang nahi to file nhi likh payega or teri bandi ke saamne beijaati ho jayegi"); } else{ printf("file banngi londe ki, damn!"); } remove("C:\\Users\\Dell\\OneDrive\\Desktop\ andi.txt"); return 0; }
ye le code...
#include
int main(){
FILE *file = fopen("C:\\Users\\Dell\\OneDrive\\Desktop\
andi.txt","w");
fprintf(file,"meri file aayi desktop pe...");
fclose(file);
if(file == NULL){
printf("location h hi nahi bc dekh le ek baar dhang nahi to file nhi likh payega or teri bandi ke saamne beijaati ho jayegi");
}
else{
printf("file banngi londe ki, damn!");
}
remove("C:\\Users\\Dell\\OneDrive\\Desktop\
andi.txt");
return 0;
}