Empty Path Name Is Not Legal [duplicate]
问题 This question already has answers here : empty path name not legal (2 answers) Closed 6 years ago . So I'm trying to compile an Asteroids game. It's almost working, all the files are in place etc etc... The issue comes when it hits this 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"