Jump to content

How to retrieve a text from text file using AutoIT?

Recommended Posts


I would like to know on how to retrieve a text from text file D:\temp.txt, and display it using MsgBox

Does anyone have any suggestions?
Thanks in advance for any suggestions


Share this post

Link to post
Share on other sites

the help file mentions _FileReadToArray UDF. look into that

the HELP file is great for looking for HELP.

you can also read it line by line if it's a huge file

Edited by Earthshine
  • Haha 1

My resources are limited. You must ask the right questions


Share this post

Link to post
Share on other sites


FileRead & MsgBox.

As suggested, open the Help file and read about some of the many and varied functions that AutoIt gives you - it will save a lot of wear and tear on your keyboard when you keep asking simple questions like this one.


  • Haha 1

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:


ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area


Share this post

Link to post
Share on other sites

Thanks, to everyone very much for suggestions (^v^)

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