Monday, November 25, 2013

Using Methods and Classes

After playing with you code. I'm having some problems that I can't fix. for some reason when I try and save my mydoor.cfg, The method you set up seems to be returning the mydoor.cfg 2 times. So it looks like this. mydoor.cfgmydoor.cfg. it seems to be only doing this when I try and run your method. It doesn't seem to do this any where else. It's only when I try and Save().



using (StreamWriter streamWriter = File.CreateText(fileName))
{
streamWriter.WriteLine(BbsName);
streamWriter.WriteLine(SysOpName);
streamWriter.WriteLine(Logs ? "Y" : "N");
streamWriter.WriteLine(AdminAccess);
streamWriter.WriteLine(UserAccess);
streamWriter.Close();
}

This is the problem method. The fileName for some reason doesn't return what it should. How ever I'm still debugging the code.




Pro-Forums

Delta Force Barracks

On the Frontlines


No comments:

Post a Comment