Can I call wordpad in a ruby script ?

I am generating a report, actually several little reports that take up more than a screen.

Is there an easy way to create a text file in ruby and then call it in wordpad ?

I just need to use a mouse to look at the pages of data.

Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

analyticphilosophyConnect With a Mentor Commented:
You can use system() to call files on the command line.  So system("C:\Windows\wordpad.exe"), replacing the quoted string with the actual location of the Wordpad executable on your system.

You can also use IO::popen.  IO.popen("C:\Windows\wordpad.exe").  
TIMFOX123Author Commented:
this is just running on a xp laptop and it is my workstation.
TIMFOX123Author Commented:
this will do it !!!!!

thank you so much

All Courses

From novice to tech pro — start learning today.