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 can update .properties file

how can update .properties file

Scheduled Pinned Locked Moved C / C++ / MFC
announcement
4 Posts 2 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.
  • V Offline
    V Offline
    venkatesh52867
    wrote on last edited by
    #1

    how can update .properties file

    L 1 Reply Last reply
    0
    • V venkatesh52867

      how can update .properties file

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Any way you like. Now if you want to give some more detail about your problem people will try to help you.

      Use the best guess

      V 1 Reply Last reply
      0
      • L Lost User

        Any way you like. Now if you want to give some more detail about your problem people will try to help you.

        Use the best guess

        V Offline
        V Offline
        venkatesh52867
        wrote on last edited by
        #3

        hi, i need to update .properties file example**

        log4j.logger.PXPBroker=TRACE, C, fileappender
        log4j.additivity.PXPBroker=false
        log4j.appender.C=org.apache.log4j.ConsoleAppender
        log4j.appender.C.layout=org.apache.log4j.PatternLayout
        log4j.appender.fileappender=org.apache.log4j.RollingFileAppender
        log4j.appender.fileappender.File=C:/pxpserver/logs/pbesb.log

        **i want to update these values in c++ please help me.

        L 1 Reply Last reply
        0
        • V venkatesh52867

          hi, i need to update .properties file example**

          log4j.logger.PXPBroker=TRACE, C, fileappender
          log4j.additivity.PXPBroker=false
          log4j.appender.C=org.apache.log4j.ConsoleAppender
          log4j.appender.C.layout=org.apache.log4j.PatternLayout
          log4j.appender.fileappender=org.apache.log4j.RollingFileAppender
          log4j.appender.fileappender.File=C:/pxpserver/logs/pbesb.log

          **i want to update these values in c++ please help me.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Use one of the fstream[^] classes to read the file, change the values that you wish to update, and write the changed values with another fstream object.

          Use the best guess

          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