Nymphetamine Posted February 18, 2014 Share 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? Link to comment Share on other sites More sharing options...
Solution FireFox Posted February 18, 2014 Solution Share 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 Link to comment Share on other sites More sharing options...
Nymphetamine Posted February 18, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
FireFox Posted February 18, 2014 Share 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 Link to comment Share on other sites More sharing options...
FireFox Posted February 18, 2014 Share Posted February 18, 2014 and put them in a fileAnd I'd like to make it appear in a listfile, list ? What's next? Link to comment Share on other sites More sharing options...
FireFox Posted February 18, 2014 Share 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. Link to comment Share on other sites More sharing options...
Nymphetamine Posted February 18, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
FireFox Posted February 18, 2014 Share Posted February 18, 2014 No problem You're welcome. Link to comment Share on other sites More sharing options...
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