Nymphetamine Posted February 18, 2014 Posted February 18, 2014 Hi. I am interested in reading a file , and put all the letter bytes in an autoit script. If for example in a file there are some words , in bytes, i'd like to get them all and put them in a file Someone know how to do it?
Solution FireFox Posted February 18, 2014 Solution Posted February 18, 2014 (edited) Hi, Maybe... $s = FileRead("in.txt") $s2 = StringRegExpReplace($s, "\W", " ") FileWrite("out.txt", $s2) _ Br, FireFox. Edited February 18, 2014 by FireFox Fr33b0w 1
Nymphetamine Posted February 18, 2014 Author Posted February 18, 2014 (edited) Hi, Maybe... $s = FileRead("in.txt") $s2 = StringRegExpReplace($s, "\W", " ") FileWrite("out.txt", $s2) _ Br, FireFox. Mmm problem is that this is not a txt file. And I'd like to make it appear in a list It's a .lod file which contains ALSO charatchers but it contains numbers too Edited February 18, 2014 by Nymphetamine
FireFox Posted February 18, 2014 Posted February 18, 2014 (edited) It does not matter if it's not a txt file, try it yourself you will see It's just an example. Edited February 18, 2014 by FireFox
FireFox Posted February 18, 2014 Posted February 18, 2014 and put them in a fileAnd I'd like to make it appear in a listfile, list ? What's next?
FireFox Posted February 18, 2014 Posted February 18, 2014 Give it a try :#include <Array.au3> $s = FileRead("in.txt") $a = StringRegExp($s, "[A-Za-z0-9]+", 3) _ArrayDisplay($a)If you want something else, take a look at the help file.Br, FireFox.
Nymphetamine Posted February 18, 2014 Author Posted February 18, 2014 file, list ? What's next? I didn't ask you to put them in a list. I said that i'd like to put them in a list. Same goes for the "file". There's a difference Anyway it has been solved. Ty
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