Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[HELP] C# Homework 2. LearnVisualStudio [HELP]
#5
(10-28-2010, 06:40 PM)-paradox- Wrote: I need help with this again.. I'm not sure what's missing or what is wrong but when I run it, it creates the .txt just fine but doesn't actually put in the decrypted message. I'm aware there may be other messages but this is what I've learned so far and this is what I'm required to use.



What you have there should work. Are you looking for it in the correct spot? The file should be created inside the project folder - bin - Debug directory. Alternatively you could force it to save the file to the desktop.

Code:
StreamWriter myWriter = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\decoded.txt");
Ho, ho, ho! Well, if it isn't fat stinking billy goat Billy Boy in poison!
How art thou, thou globby bottle of cheap, stinking chip oil?
Come and get one in the yarbles, if ya have any yarbles, you eunuch jelly thou!
Reply


Messages In This Thread
RE: [HELP] C# Homework 2. LearnVisualStudio [HELP] - by Disease - 10-29-2010, 09:52 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)