Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Java (http://www.programmingforums.org/forum17.html)
-   -   How To Open A Text File In Java (http://www.programmingforums.org/showthread.php?t=1376)

tguns1177 Dec 1st, 2004 6:06 PM

Hello,

How can I open a text file in java code? I have a class that reads data from one file, and generates another txt file from it. At the end of the process, I wish to open the file (ie in Notepad, TextPad, etc). How do I do this??

drunkenCoder Dec 10th, 2004 6:33 AM

try:
:

Runtime.getRuntime().exec("notepad.exe filepath/filename");


All times are GMT -5. The time now is 2:54 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC