Sign in to follow this  
Followers 0
ravenfyre

Displaying Text File As Msgbox

4 posts in this topic

I need my script to do something simple yet I'm not sure how to go about doing it.

I want a readme text file to be the first thing to show up when I launch my script, giving me an option to proceed just like a msgbox. Unlike a msgbox, I need the text to be read from a seperate text file instead of reading it from the script. The reason is because I want the readme text to be easily editable since I update it constantly. However, if I put the text in the script it's not easy to read since I have to use @CRLF all over the place to specify each line and so on.

Anyone know how I can do this? Again, I need the script to read a seperate text file and display it as a msgbox with the option to proceed (OK).

Share this post


Link to post
Share on other sites



$readmefile = "C:\boot.ini"
msgbox(0,"Readme",FileRead($readmefile, FileGetSize($readmefile)))


Who else would I be?

Share this post


Link to post
Share on other sites

Just what I needed, thank you "this-is-me".

Share this post


Link to post
Share on other sites

No problem


Who else would I be?

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