c# - Empty Path Name Is Not Legal -
this question has answer here:
- empty path name not legal 2 answers
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
Post a Comment