paule Posted April 25, 2008 Posted April 25, 2008 (edited) I thing there is a bug in _FileReadToArray in beta 3.2.11.10 If the last line have not cr or lf then _FileReadToArray does not read the line. Version 3.2.10.0 read this kind of line. I must correct my declaration Example test test test 0d0a test test test 0d0a 0d0a Version 3.2.10.0 show array[0]=3 Version 3.2.11.10 show array[0]=1 paule Edited April 25, 2008 by paule
jpm Posted April 25, 2008 Posted April 25, 2008 I thing there is a bug in _FileReadToArray in beta 3.2.11.10 If the last line have not cr or lf then _FileReadToArray does not read the line. Version 3.2.10.0 read this kind of line. I must correct my declaration Example test test test 0d0a test test test 0d0a 0d0a Version 3.2.10.0 show array[0]=3 Version 3.2.11.10 show array[0]=1 pauleThats not the place to submit a bug. anyway a bug was corrected for the last empty line 3.2.11.10 not sure everybody happy with such fix
herewasplato Posted April 25, 2008 Posted April 25, 2008 Version 3.2.11.10 show array[0]=1Version 3.2.11.10 show array[0]=2 [size="1"][font="Arial"].[u].[/u][/font][/size]
herewasplato Posted April 25, 2008 Posted April 25, 2008 (edited) Thats not the place to submit a bug...Let's hope that he was seeking confirmation "in here" before posting "there"... but there is not much to confirm. @Paule - yep, I see the change too.?? ...not sure everybody happy with such fix..True. Something to play with:#include <File.au3> #include <Array.au3> Dim $aArray _FileReadToArray("input.txt", $aArray) _ArrayDisplay($aArray) Edit: corrected spelling Edited April 25, 2008 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size]
paule Posted April 25, 2008 Author Posted April 25, 2008 (edited) Thats not the place to submit a bug.I was not sure is it a bug or a feature. sorryanyway a bug was corrected for the last empty line 3.2.11.10 not sure everybody happy with such fixthis is not correct. All empty line past last line are ignored. Empty lines between full lines are not ignoredI thing this must be notice in the help file Edited April 25, 2008 by paule
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