bafh Posted September 27, 2005 Posted September 27, 2005 Hi folks, well I got this problem: I got a file (html but i could convert it into usual text or what ever, it doesnt really matter) and there are many lines with information. Now, what I want to do, is that the script reads the first line, deletes part of the info (which is like the first 10 letters) and writes the rest into a new text file. Then it does the same with line two. In line three it checks if the stuff it wants to write into the textfile is already there and if not it writes it down AND SO ON until the file ends. Well, the file is that big that I really really really dont want to do that manually. How would I do that with autoit? Thanks alot.
w0uter Posted September 27, 2005 Posted September 27, 2005 id say StringRegExp. (from the beta) but StringInStr + StringTrim should also work. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
bafh Posted September 27, 2005 Author Posted September 27, 2005 Okay, and how would i do the read line and read next line and so on? as a script?
w0uter Posted September 27, 2005 Posted September 27, 2005 read the helpfile My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
bafh Posted September 27, 2005 Author Posted September 27, 2005 Yes and how would I write a function that checks the whole written file if the line already exists?
w0uter Posted September 27, 2005 Posted September 27, 2005 there a few udf's that do that. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now