Error: Illegal characters in path

S

Shirin

Hi,

I have a problem in CreateTxt.

strFileName = "500" + aHeader.Scheme_Code + aHeader.Sequence_No +
".pay";
streamWriter = File.CreateText(this.strPath + "\\" + strFileName);

It returns error 'Illegal characters in path'
and I found that it's only occurs in my PC. The problem dose not occur
in others PC. And when I got step in the debug mode, I've found that
the strFileName dose not with the file extension '.pay'. Please help.

Shirin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top