Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. code in C language that can save and edit

code in C language that can save and edit

Scheduled Pinned Locked Moved C / C++ / MFC
helpcom
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shazzney
    wrote on last edited by
    #1

    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

    L T D 3 Replies Last reply
    0
    • S shazzney

      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

      L Offline
      L Offline
      Laxman9
      wrote on last edited by
      #2

      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:

      S 1 Reply Last reply
      0
      • S shazzney

        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

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #3

        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()[^],

        S 1 Reply Last reply
        0
        • T toxcct

          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()[^],

          S Offline
          S Offline
          shazzney
          wrote on last edited by
          #4

          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

          T 1 Reply Last reply
          0
          • L Laxman9

            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:

            S Offline
            S Offline
            shazzney
            wrote on last edited by
            #5

            thanks for that but can i ask the whole code of the program. i'll wait for your reply..........

            R 1 Reply Last reply
            0
            • S shazzney

              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

              T Offline
              T Offline
              toxcct
              wrote on last edited by
              #6

              is this a homework ?? :~


              TOXCCT >>> GEII power
              [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]

              1 Reply Last reply
              0
              • S shazzney

                thanks for that but can i ask the whole code of the program. i'll wait for your reply..........

                R Offline
                R Offline
                Rage
                wrote on last edited by
                #7

                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();

                1 Reply Last reply
                0
                • S shazzney

                  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

                  D Offline
                  D Offline
                  David Crow
                  wrote on last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups