Deye Posted December 31, 2016 Share Posted December 31, 2016 Hi, I would like to to place a return of $BinarydData into the script Local $txt = @ScriptDir &"\test.txt" Local $read = FileOpen($txt, 16) Local $BinarydData = FileRead($read) So then i could use something like : _FileReadToArray($BinarydData, $FileArray) What might be the clearest way of doing so .. TIA Link to comment Share on other sites More sharing options...
Subz Posted December 31, 2016 Share Posted December 31, 2016 So why can't you just use the FileReadToArray function, am I missing something? Local $txt = @ScriptDir &"\test.txt" Local $read = FileOpen($txt, 16) Local $BinarydData = FileReadToArray($read) Link to comment Share on other sites More sharing options...
Deye Posted January 1, 2017 Author Share Posted January 1, 2017 @Subz The point is reading the file to array but from within the script (from data) instead of needing to create and write the array in plain text , also avoiding fileinstall .. thanks Link to comment Share on other sites More sharing options...
Subz Posted January 1, 2017 Share Posted January 1, 2017 Resources UDF by Zedna. Deye 1 Link to comment Share on other sites More sharing options...
genius257 Posted January 1, 2017 Share Posted January 1, 2017 $FileArray = StringSplit($BinarydData, @CRLF, 1+2) Or $FileArray = StringRegExp($BinarydData, "[^\r\n]+", 3) Deye 1 My highlighted topics: AutoIt Package Manager, AutoItObject Pure AutoIt, AutoIt extension for Visual Studio Code Github: AutoIt HTTP Server, AutoIt HTML Parser Link to comment Share on other sites More sharing options...
Deye Posted January 1, 2017 Author Share Posted January 1, 2017 (edited) resolved to using : ResourcesEx.au3 Edited January 1, 2017 by Deye 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