Datenshi Posted August 27, 2008 Posted August 27, 2008 (edited) Ive run into a problem with FileReadToArray, basically it refuses to work when there's a single line at the top of file to read. AFTER COMPILE! #include <array.au3> #include <File.au3> Dim $PickfileArray[1] _FileReadToArray("singleline.txt", $PickfileArray) If @Error Then MsgBox(0,"error","error filereadtoarray") Endif _ArrayDisplay($PickfileArray) Compile that and make singleline.txt with a single line at top. AutoIt v3.2.12.1 Vista X64 Edited August 27, 2008 by Datenshi RapidQueuer 2.4 - For Rapidshare.comOpensubtitles Hashing FuncRevision3 PlayerGTPlayer BetaIMDB & Poster Grabber v1.3Fetgrek.com - My Website
smashly Posted August 27, 2008 Posted August 27, 2008 Hi, it works fine for me. XP SP3 AutoIt v3.2.12.1
sandin Posted August 27, 2008 Posted August 27, 2008 maybe you could try with adding sleep() after _FileReadToArray() Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll
Moderators SmOke_N Posted August 27, 2008 Moderators Posted August 27, 2008 I hate to ask the obvious, is "singleline.txt" in the same directory as the compiled exe? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Datenshi Posted August 27, 2008 Author Posted August 27, 2008 Further testing showed that the bug only appear with the Beta Compiler. RapidQueuer 2.4 - For Rapidshare.comOpensubtitles Hashing FuncRevision3 PlayerGTPlayer BetaIMDB & Poster Grabber v1.3Fetgrek.com - My Website
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