Hi, I'm using a StreamReader that process an input file and generates an output file (both .txt) after querying Active Directory.
My application is working fine whenever I type in my own parameter for the filename (i.e. fileName = Console.ReadLine(); ), but the program does not create the output file whenever I try to drag a file (i.e. the input .txt file) onto my .exe file. I would like to be able to have this drag-and-drop capability, as some of the input filenames are very long.
Also, this is really weird, but if I put the absolute path to the input .txt file inside of my project properties (debug>StartOptions, Command line arguments) and run it that way, it works fine!
I don't know what is going on, but it's driving me crazy ;)
Any help would be most appreciated.
Thanks,
jeremytmunn
[email protected]