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. Other Discussions
  3. The Back Room
  4. Help: How to Search a text file for a string

Help: How to Search a text file for a string

Scheduled Pinned Locked Moved The Back Room
helptutorial
4 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
    Adam Sooley
    wrote on last edited by
    #1

    I need some help on how to Search a text file for a string that is in a text file. This will be used in a Applet. Their will be a text box and when you enter a word ex("adam") and press search it will read the text file to see is adam is a valid entry. If it is a valid entry it will return true to a text area if not true it will return false to the text area. Any help would be great.

    N realJSOPR 2 Replies Last reply
    0
    • A Adam Sooley

      I need some help on how to Search a text file for a string that is in a text file. This will be used in a Applet. Their will be a text box and when you enter a word ex("adam") and press search it will read the text file to see is adam is a valid entry. If it is a valid entry it will return true to a text area if not true it will return false to the text area. Any help would be great.

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      I think you are talaking about INI files, arent you? Like :- prop1=abc prop2=10 path=d:\ Are you? Nish_


      One little CD gone, Then two CDs gone, Then 5 more gone, For a total 7 gones, If I was a CD R, I'd wanna cry, Cause I'd be just a goner, For a nasty CD burner. [funny how frustration wakes up the poet in me]_

      1 Reply Last reply
      0
      • A Adam Sooley

        I need some help on how to Search a text file for a string that is in a text file. This will be used in a Applet. Their will be a text box and when you enter a word ex("adam") and press search it will read the text file to see is adam is a valid entry. If it is a valid entry it will return true to a text area if not true it will return false to the text area. Any help would be great.

        realJSOPR Offline
        realJSOPR Offline
        realJSOP
        wrote on last edited by
        #3

        Just type in the the following "Find("RightFuckinForum") and then PostYourQuestion("There"). "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 Please review the Legal Disclaimer in my bio.

        N 1 Reply Last reply
        0
        • realJSOPR realJSOP

          Just type in the the following "Find("RightFuckinForum") and then PostYourQuestion("There"). "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 Please review the Legal Disclaimer in my bio.

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #4

          John I was gonna type something like that, then thought I would be infringing your copyrights for attack-posts :-) Nish_


          One little CD gone, Then two CDs gone, Then 5 more gone, For a total 7 gones, If I was a CD R, I'd wanna cry, Cause I'd be just a goner, For a nasty CD burner. [funny how frustration wakes up the poet in me]_

          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