c# - Empty Path Name Is Not Legal -


this question has answer here:

so i'm trying compile asteroids game. it's working, files in place etc etc...

the issue comes when hits code.

filestream myfilestream = new filestream(filename, filemode.open, fileaccess.read, fileshare.read); string mytempfile = @"f:\documents\junior school\computer programming (java 1)\asteroidswithsound\asteroidswithsound\temp\mysound" + i.tostring() + ".wav"; 

it gives me error/warning, not sure called says

argumentexception unhandled. empty path name not legal.

i've read online chunks of code causing issue never find resolution. awesome.

edit: filename defined in chunk.

string filename = this.player.filename; this.player.open(""); file.delete(filename); this.isready = true; 

that suggests filename variable refers empty string.

you haven't shown code sets value of filename, that's bit at.


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -