[MonoDevelop] Monodevelop2.2 and reading input from .txt files

Michael Hutchinson m.j.hutchinson at gmail.com
Thu Jan 21 14:14:33 EST 2010


On Tue, Jan 19, 2010 at 4:05 PM, campben5 <campben5 at gmail.com> wrote:
>
> Hi,
>
> I recently installed monodevelop 2.2 on my Ubuntu operating system. I
> found it after converting my very slow laptop to a linux machine. For
> the most part I like this IDE but I have one question.
>
> When working with C++ and needing to read input from a .txt file,
> where do you need to put the .txt file? The reason I ask is that
> although my code compiles just fine with g++, it will not run in
> monodevelop2.2. It
> always terminates saying that it was unable to open the .txt file.

The compiled app is output into a build directory, not the project
directory, so if you want it to find the file beside it, you probably
want to select the txt file and, using the properties pad, set it to
"copy to output directory". Note that you can also change the build
output directory in the project options.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list