I have this to find the path:
System.IO.FileInfo path = new FileInfo(com.Substring(5));
string fullpath = path.FullName;
But that returns the path of the console app + whatever i type.
(e.g. C:\users\RILEY\Desktop\....\....\....\+(com.substring(5)))
What I want to happen is when i enter:
./$ cat log.txt
The console app writes what is in the text file. i can read and display it but i dont want me or my users to to have to write:
C:\(Ungodly long f***ing file path)\(another ungodly long f***ing filepath)\(another ungodly long f***ing filepath)\(another ungodly long f***ing filepath)\(another ungodly long f***ing filepath)\(another ungodly long f***ing filepath)\(another ungodly long f***ing filepath)\(another ungodly long f***ing filepath)\(whatever text file you want to read)
So how do i just type a file name and have it get the full path of it?