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. file overwriting

file overwriting

Scheduled Pinned Locked Moved C / C++ / MFC
questionlearning
3 Posts 3 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.
  • A Offline
    A Offline
    AuroraX
    wrote on last edited by
    #1

    Hi there, I wish to read a character from an input file one at a time, then process the character and finally write the processed character back to the place where it is initially read from (ie from the same input file, and same location in the file)..... how can i do that (preferably with not much too advance command as I am only a beginner ) Thanks very much...:-D

    P O 2 Replies Last reply
    0
    • A AuroraX

      Hi there, I wish to read a character from an input file one at a time, then process the character and finally write the processed character back to the place where it is initially read from (ie from the same input file, and same location in the file)..... how can i do that (preferably with not much too advance command as I am only a beginner ) Thanks very much...:-D

      P Offline
      P Offline
      palbano
      wrote on last edited by
      #2

      http://www.functionx.com/cpp/articles/filestreaming.htm[^]

      "No matter where you go, there your are." - Buckaroo Banzai

      -pete

      1 Reply Last reply
      0
      • A AuroraX

        Hi there, I wish to read a character from an input file one at a time, then process the character and finally write the processed character back to the place where it is initially read from (ie from the same input file, and same location in the file)..... how can i do that (preferably with not much too advance command as I am only a beginner ) Thanks very much...:-D

        O Offline
        O Offline
        ocean2000
        wrote on last edited by
        #3

        if you use CFile Class, try CFile::Seek(-1,CFile::current)

        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