code in C language that can save and edit
-
hi!!! my problem is that i don't know the code in C language that can save and edit file............... i hope u will help me in this......please send the code at shazzney@message.com..........i'll wait for ur reply thank you very much -- modified at 3:17 Wednesday 25th January, 2006
-
hi!!! my problem is that i don't know the code in C language that can save and edit file............... i hope u will help me in this......please send the code at shazzney@message.com..........i'll wait for ur reply thank you very much -- modified at 3:17 Wednesday 25th January, 2006
this is the code for reading the text file which will help you char temp1[80]; FILE *f; if ( ( f = fopen("c:\\Log.txt","r") )==NULL) { printf("Unable to open file"); return; } while(fgets(f,"%s",temp1)!=EOF) { printf("%s",temp1); } fclose(f); Thanks and Regards Laxman FAILURE is the first step towards SUCCESS :cool:
-
hi!!! my problem is that i don't know the code in C language that can save and edit file............... i hope u will help me in this......please send the code at shazzney@message.com..........i'll wait for ur reply thank you very much -- modified at 3:17 Wednesday 25th January, 2006
shazzney wrote:
please send the code at shazzney@message.com
first of all, no way i do that, an i hope nobody will !! we are on this forum to share knowledges, so there is no reason that you get the answer secretly... well, now, as your question is not very clear, i don't really understand what you're looking for. tell me if this is wrong : - you code in C (not C++). - you want to read/write from/into files, but don't know how ? well, i may be wrong, but did you have a look at the fopen()[^], fclose()[^], fread()[^], fwrite()[^], fscanf()[^], fprintf()[^],
-
shazzney wrote:
please send the code at shazzney@message.com
first of all, no way i do that, an i hope nobody will !! we are on this forum to share knowledges, so there is no reason that you get the answer secretly... well, now, as your question is not very clear, i don't really understand what you're looking for. tell me if this is wrong : - you code in C (not C++). - you want to read/write from/into files, but don't know how ? well, i may be wrong, but did you have a look at the fopen()[^], fclose()[^], fread()[^], fwrite()[^], fscanf()[^], fprintf()[^],
sorry if im to selfish but im thinking that the code is to long so i let u send in my email ad. the code that i want to know is in C language. That can save, like in a cashier that can edit and save the remaining balance of the student. i tell you frankly i dont know the code that is why im asking for help
-
this is the code for reading the text file which will help you char temp1[80]; FILE *f; if ( ( f = fopen("c:\\Log.txt","r") )==NULL) { printf("Unable to open file"); return; } while(fgets(f,"%s",temp1)!=EOF) { printf("%s",temp1); } fclose(f); Thanks and Regards Laxman FAILURE is the first step towards SUCCESS :cool:
-
sorry if im to selfish but im thinking that the code is to long so i let u send in my email ad. the code that i want to know is in C language. That can save, like in a cashier that can edit and save the remaining balance of the student. i tell you frankly i dont know the code that is why im asking for help
-
thanks for that but can i ask the whole code of the program. i'll wait for your reply..........
2 possibilities: 1. You need the complete code, you do not want to give it a try, feel free to send me the description of what you need, and i'll send you an estimation of what it will cost you. 2. You experience problems as every programmer now and then, post what you have already done, explain what the problem is, and we'll help on this forum. ~RaGE();
-
hi!!! my problem is that i don't know the code in C language that can save and edit file............... i hope u will help me in this......please send the code at shazzney@message.com..........i'll wait for ur reply thank you very much -- modified at 3:17 Wednesday 25th January, 2006
shazzney wrote:
my problem is that i don't know the code in C language that can save and edit file...............
Our problem is that you have not provided nearly enough details about the file in question. You're going to have to put forth some effort if you expect any reasonable level of help.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb