XNA C# Problem reading directory content -


i've started developing of card game xna had problems reading cards inside cards directory inside content.

i've tried following code:

string[] nomecartas = directory.getfiles(@"cards"); 

but retrieved error saying not possible find part of path:

não foi possível encontrar uma parte caminho 'c:\users\serafim\documents\visual studio 2010\projects\jogosuecaonline\jogosuecaonline\jogosuecaonline\bin\x86\debug\cards\'.

i checked path , it's wrong, correct path should be:

c:\users\serafim\documents\visual studio 2010\projects\jogosuecaonline\jogosuecaonline\jogosuecaonline\bin\x86\debug\content\cards\

is there other way read directory content xna or how can fix this?

try:

directory.getfiles(@"content\cards"); 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -