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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. How to read a exact word in a text file using c#

How to read a exact word in a text file using c#

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharphelptutorialquestion
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.
  • N Offline
    N Offline
    NK7
    wrote on last edited by
    #1

    Hi I would like to list all the available servers from tnsnames.ora file. DBNAME = (DESCRIPTIOMN= (ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=113.114.2.145)(PORT=1521)) (CONNECT_DATA=SERVICE_NAME=dbname)) In this file i want to read exactly "service_name = dbname". How to do it in C#. Any one could you help me please? kesavan

    P G 2 Replies Last reply
    0
    • N NK7

      Hi I would like to list all the available servers from tnsnames.ora file. DBNAME = (DESCRIPTIOMN= (ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=113.114.2.145)(PORT=1521)) (CONNECT_DATA=SERVICE_NAME=dbname)) In this file i want to read exactly "service_name = dbname". How to do it in C#. Any one could you help me please? kesavan

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Please don't cross post.

      the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
      Deja View - the feeling that you've seen this post before.

      1 Reply Last reply
      0
      • N NK7

        Hi I would like to list all the available servers from tnsnames.ora file. DBNAME = (DESCRIPTIOMN= (ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=113.114.2.145)(PORT=1521)) (CONNECT_DATA=SERVICE_NAME=dbname)) In this file i want to read exactly "service_name = dbname". How to do it in C#. Any one could you help me please? kesavan

        G Offline
        G Offline
        gnadeem
        wrote on last edited by
        #3

        hi, http://www.codeproject.com/dotnet/RegexTutorial.asp[Reqular Expressions] may be helpfull.

        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