dplaut1 Posted October 8, 2018 Posted October 8, 2018 I read a file into an array and all looks good when displayed with _ArrayDisplay. I transfer text to another array and it is scrambled (by that I mean random line breaks) and then _FileWriteFromArray has the same line breaks, of course. I don't know why that is happening. Is there a row length limit? If anyone wants to take a stab at helping me: The au3 file is fairly simple. A sample text file causing the problem is attached. Thanks FileOutputFromArrayTest.au3 test.txt
faustf Posted October 8, 2018 Posted October 8, 2018 i but explain what you want have , because if you want 2 array with the same content you an do filereadtoarray for 2 array
Subz Posted October 8, 2018 Posted October 8, 2018 Its because your text includes pipes "|", so when _ArrayAdd is used it breaks the pipes into separate lines, so you would need to use: _ArrayAdd($aOrdersArray, $alines[$i], 0, "|", @CRLF, 1) dplaut1 1
FrancescoDiMuro Posted October 9, 2018 Posted October 9, 2018 @dplaut1 You could even check for blank lines in the array, and remove them, without creating another array Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
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