![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Dec 2004
Posts: 1
Rep Power: 0
![]() |
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?? |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Nov 2004
Posts: 8
Rep Power: 0
![]() |
try:
Runtime.getRuntime().exec("notepad.exe filepath/filename"); |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|