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#
  4. Find and replace in text file

Find and replace in text file

Scheduled Pinned Locked Moved C#
tutorial
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
    sevan
    wrote on last edited by
    #1

    find string Expire and change the first two lines after Expire to Code project example Expire 12345 23423 cool To Expire Code project Code project thx

    D K 2 Replies Last reply
    0
    • S sevan

      find string Expire and change the first two lines after Expire to Code project example Expire 12345 23423 cool To Expire Code project Code project thx

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      So, what's the qustion? And, no, we're not going to write the code for you. If you're having a problem with the logic or some code issue, we can help with that. But don't expect anyone to write the whole thing for you. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      T 1 Reply Last reply
      0
      • D Dave Kreskowiak

        So, what's the qustion? And, no, we're not going to write the code for you. If you're having a problem with the logic or some code issue, we can help with that. But don't expect anyone to write the whole thing for you. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

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

        I recommend looking up, 'String' IM PROUD TO BE A GMAIL;

        D 1 Reply Last reply
        0
        • T tom_dx

          I recommend looking up, 'String' IM PROUD TO BE A GMAIL;

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          I recommend telling the person who originally posted the question, not me... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          1 Reply Last reply
          0
          • S sevan

            find string Expire and change the first two lines after Expire to Code project example Expire 12345 23423 cool To Expire Code project Code project thx

            K Offline
            K Offline
            Kraki
            wrote on last edited by
            #5

            I would suggest looking at the System.Text.RegularExpression namespace and use a regular expression to do the replacement.

            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