OK. Simple question. Maybe not so simple answer, though:
I have a file I downloaded in Java, and I know that it\'s a text file. Is there any way that I can use Java
Certainly you could configure in the text editor and use Runtime.exec to start it. But I can't think of any way to determine the default editor, especially in a system-independent fashion.
Maybe your best option is to identify which of the several most popular platforms you're on and then find a way to start the default editor on that platform. Eg, on Window you'll get the default editor if you do "start filename.txt", and I'm pretty sure there's a Linux equivalent.