# How do i open a text file from a terminal window from within the android gui

I'm trying to open a text file from within a terminal window emulator -- but not so it opens in the actual terminal but more like I've just clicked on it.

So my question is: What command can I use to open /mnt/sdcard/textfile.txt from a terminal window emulator from ROM Toolbox Lite within the Android GUI so that it will open with any one of my text editing applications? Will I need to run su before I can run what ever command? I'd prefer not to, but the device is rooted so I can run su.

Im using Android version 4.0.4

-
Do you want to open it in a seperate program? Or do you just want to quickely edit it? nano or vi are usually available on *nix based systems. I prefer nano because it is a bit cleaner imho. –  John Apr 20 '13 at 23:40
No i want the command to open the file with droid edit or with es text editor –  Richard Lalaz Apr 21 '13 at 0:26
Thank you for your input but i am looking for something simpler than that... I realized last night all i want to know is how to do this like in windows if you type in C:\text.txt from command prompt it will load the default text editor (what ever that may be) so how do i do it using bash terminal emulator from ROM Toolbox Lite? –  Richard Lalaz Apr 21 '13 at 19:48
You can always just rip the file off of the phone using adb and then open it on your computer –  John Apr 22 '13 at 12:05