-
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.
-
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
Similar Threads
-
By ObiWan in forum VB Classic
Replies: 3
Last Post: 05-23-2006, 10:35 AM
-
By mdengler in forum ASP.NET
Replies: 0
Last Post: 11-26-2002, 03:32 PM
-
By Martin in forum VB Classic
Replies: 22
Last Post: 12-03-2001, 04:53 AM
-
By Julian Milano in forum VB Classic
Replies: 0
Last Post: 08-10-2000, 09:16 PM
-
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
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|