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. how to maintain text file constant

how to maintain text file constant

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
5 Posts 4 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
    shaans
    wrote on last edited by
    #1

    hai .. can anybody help me in my problem?My problem is to maintain constant size to one text file.eg 500kb then if i add any thing it will not show that text files size increasing.please help me. regards shaanu shan

    M T D 3 Replies Last reply
    0
    • S shaans

      hai .. can anybody help me in my problem?My problem is to maintain constant size to one text file.eg 500kb then if i add any thing it will not show that text files size increasing.please help me. regards shaanu shan

      M Offline
      M Offline
      Martijn van Kleef
      wrote on last edited by
      #2

      How about (temporarily) using a copy of the text file instead and add to that?

      S 1 Reply Last reply
      0
      • S shaans

        hai .. can anybody help me in my problem?My problem is to maintain constant size to one text file.eg 500kb then if i add any thing it will not show that text files size increasing.please help me. regards shaanu shan

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

        what about overwriting the file content ???


        TOXCCT >>> GEII power
        [toxcct][VisualCalc]

        1 Reply Last reply
        0
        • M Martijn van Kleef

          How about (temporarily) using a copy of the text file instead and add to that?

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

          I am storing 32 bit keys.so i want to store some more keys.but the size of text file should be constat.i want to limit its size by some 500 kb like that.so what should i do for make constant size of text file in vc++? shan

          1 Reply Last reply
          0
          • S shaans

            hai .. can anybody help me in my problem?My problem is to maintain constant size to one text file.eg 500kb then if i add any thing it will not show that text files size increasing.please help me. regards shaanu shan

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

            If you add to a file, it's going to increase in size. There is no way around this. This is a very odd requirement.


            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            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