Deye Posted December 31, 2016 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
Subz Posted December 31, 2016 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)
Deye Posted January 1, 2017 Author 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
genius257 Posted January 1, 2017 Posted January 1, 2017 $FileArray = StringSplit($BinarydData, @CRLF, 1+2) Or $FileArray = StringRegExp($BinarydData, "[^\r\n]+", 3) Deye 1 To show your appreciation My highlighted topics: AutoIt Package Manager, AutoItObject Pure AutoIt, AutoIt extension for Visual Studio Code Github: AutoIt HTTP Server, AutoIt HTML Parser
Deye Posted January 1, 2017 Author Posted January 1, 2017 (edited) resolved to using : ResourcesEx.au3 Edited January 1, 2017 by Deye
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