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. Help for searching in phonebook

Help for searching in phonebook

Scheduled Pinned Locked Moved C#
algorithmshelpquestionlearning
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.
  • S Offline
    S Offline
    sh alamdari
    wrote on last edited by
    #1

    Hi All can anyone help me for searching in phone book? I use text file for saving data. I want to find all names that contains the input character. I dont now how do it. pleas give me a solution.

    L A 2 Replies Last reply
    0
    • S sh alamdari

      Hi All can anyone help me for searching in phone book? I use text file for saving data. I want to find all names that contains the input character. I dont now how do it. pleas give me a solution.

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

      First thing you will have to do is to read the data from the file. You may want to read line by line looking for the characters in question. Alternatively you could read the entire file into some sort of List/Array/Dataset etc and then use the methods of those objects to search. Take a look at the foregoing classes to get some ideas of what is possible.

      1 Reply Last reply
      0
      • S sh alamdari

        Hi All can anyone help me for searching in phone book? I use text file for saving data. I want to find all names that contains the input character. I dont now how do it. pleas give me a solution.

        A Offline
        A Offline
        Arindam Sinha
        wrote on last edited by
        #3

        Which version of Windows Mobile platform you are using? I think you can try with ContactCollection sample in MSDN [^]if it gives you any hint.

        Regards, Arindam Sinha MyBlog - http://arindamsinha.wordpress.com/ Please give your feedback on this message using rating.

        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