Which 'Content Importer' to use for .TXT files?

I imported a plain text file into my XNA game, and I'm not sure which Content Importer AND Content Processor to specify, could anyone point me in the right direction? I don't need to do anything special with the file, it's just plain text.. I didn't think it'd need one since I'm just reading it with a StreamReader, so I would like to avoid converting it to .XNB, if possible.

Note: In case it matters, I'm using C#. I didn't tag it since it shouldn't matter.

Answers


You're overcomplicated something very simple. You don't need to put it in your content project at all. You should bundle it with your actual application and put it in the same directory as your application, or use the Copy To Output Directory property on the file after you put it in your regular project (in a Content folder, if you really need to).

After that, it's just opening a FileStream of File.Open on "index.txt".

Good luck!


Need Your Help

How do I store session and access it anywhere in my application in symfony2?

php symfony2 session

Code is given below. I have a loginAction method and I want to access username through the session in my twig file.

Selenium to select and click on correct link

c# selenium

Please dont get bored of answering my questions continuously for the same type of data. I am using Selenium and c# for my application. Here also I have a web page with contents like this:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.