Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
way to read by line from file or str and trim
#1
Hello, Gintaras~!

I couldn't find a method to read by line from file or str and process like this

in A.txt or str s :

Apple Banana Car Dirt Enable
Bird Like Hide Native Phone Keyboard
Cellular Time Work

and I want to find Native and trim like :

Native Phone Keyboard
Cellular Time Work


if possible, please let me know the method

Always Thank you...
#2
Try this tool called "TrimByKeyword" and see if it is what you want.


Attached Files
.qml   TrimByKeyword.qml (Size: 3 KB / Downloads: 373)
#3
Oh, Thank You in advance~! I'll try this.
#4
I tested. It works but it seems not work on below code

Code:
Copy      Help
str TXTFILE = "C:\TMP.txt"
str plist F
str TD="</td>"
int T

HtmlDoc DCenter.SetOptions(2)
DCenter.InitFromWeb("")
plist=DCenter.GetHtml
plist.remove(0 96655) ; plist.setfile(TXTFILE)
str TR="<tr>"
F=TrimByKeyword(plist TR)
out F
#5
You're right my tool does not handle webpage content at all. Since your first example is so simple and I've just made a quick one to solve it. Now you give me something new and more complicated to deal with, but I've come up with another one to handle it. So give this tool a try, just delete the old one and import this tool again.


Attached Files
.qml   TrimByKeyword.qml (Size: 5 KB / Downloads: 385)
#6
OOOh, I'll test this ... THANK YOU TWICE~!!


Forum Jump:


Users browsing this thread: 1 Guest(s)