erezlevi Posted February 6, 2008 Posted February 6, 2008 hi, this is my code: #include <File.au3> #include <String.au3> #include <Array.au3> Dim $EREZ[100] _FileReadToArray ("c:\erez1.txt",$EREZ) _ArrayDisplay ($EREZ) can't get the file erez1.txt into the $EREZ array, tried to remove null(0) didn't help. anyone?
Zedna Posted February 6, 2008 Posted February 6, 2008 Your TXT file is in binary (and not text) format and hasn't @CRLF so this function probably reads whole file content as one line. Resources UDF ResourcesEx UDF AutoIt Forum Search
Valuater Posted February 6, 2008 Posted February 6, 2008 Maybe... #include <File.au3> #include <String.au3> #include <Array.au3> Dim $EREZ $Read = FileReadLine("c:\erez1.txt", 1) $Replace = StringReplace($Read, "", "") $Replace = StringReplace($Replace,Chr("7f"), "") $EREZ = StringSplit($Replace, "[") _ArrayDisplay ($EREZ) 8)
erezlevi Posted February 6, 2008 Author Posted February 6, 2008 Maybe... #include <File.au3> #include <String.au3> #include <Array.au3> Dim $EREZ $Read = FileReadLine("c:\erez1.txt", 1) $Replace = StringReplace($Read, "", "") $Replace = StringReplace($Replace,Chr("7f"), "") $EREZ = StringSplit($Replace, "[") _ArrayDisplay ($EREZ) 8) Yes yes yes yes yes yes yes ,,, you are another GOD! Thanks you saved me...
Valuater Posted February 6, 2008 Posted February 6, 2008 Yes yes yes yes yes yes yes ,,, you are another GOD! Thanks you saved me...LOLWelcome!8)
martin Posted February 6, 2008 Posted February 6, 2008 *Adds Valuater as a GOD on Olympus* Now....the hard part........ The God of "What"??? No, not the God of what, the God of Why. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
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