DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: how to search a string in notepad

  1. #1
    Join Date
    Feb 2007
    Posts
    3

    Exclamation how to search a string in notepad

    we have a notepad file written like below
    one
    two
    three
    one
    five
    one
    four
    four
    one

    i want there is a search button(write one) on vb front form .when we click this button a new sheet or form open which contain like
    one
    one
    one
    one
    Last edited by amit.nikhil; 02-07-2007 at 06:25 AM.

  2. #2
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    open file for input as #X
    open file2 for append as #Y 'output
    do until eof(X)
    line input #X, temp
    if left(tmp,3) = "one" then print #Y, tmp
    loop
    close #X
    close #Y
    shell file2
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

Similar Threads

  1. SQL DMO Restores in VB?
    By ObiWan in forum VB Classic
    Replies: 3
    Last Post: 05-23-2006, 10:35 AM
  2. Input string was not in a correct format
    By mdengler in forum ASP.NET
    Replies: 0
    Last Post: 11-26-2002, 03:32 PM
  3. Writing in HKEY_LOCAL_MACHINE...Access is denied
    By Martin in forum VB Classic
    Replies: 22
    Last Post: 12-03-2001, 04:53 AM
  4. How do I detect an FTP timeout?
    By Julian Milano in forum VB Classic
    Replies: 0
    Last Post: 08-10-2000, 09:16 PM
  5. Database problems
    By Robert Rieth in forum VB Classic
    Replies: 1
    Last Post: 04-11-2000, 03:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center