Sign in to follow this  
Followers 0
paule

_filereadtoarray

5 posts in this topic

#1 ·  Posted (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 by paule

Share this post


Link to post
Share on other sites



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

Thats 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

Share this post


Link to post
Share on other sites

Version 3.2.11.10 show array[0]=1

Version 3.2.11.10 show array[0]=2

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Thats not the place to submit a bug.

I was not sure is it a bug or a feature. sorry

anyway a bug was corrected for the last empty line 3.2.11.10 not sure everybody happy with such fix

this is not correct. All empty line past last line are ignored. Empty lines between full lines are not ignored

I thing this must be notice in the help file

Edited by paule

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0