Thread Rating:
- 1 Vote(s) - 1 Average
- 1
- 2
- 3
- 4
- 5
[HELP] C# Homework 2. LearnVisualStudio [HELP]
|
Posts: 202
Threads: 7
Joined: Sep 2010
Reputation:
6
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.
Code: using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace Homework_Day_2
{
class Program
{
static void Main(string[] args)
{
StreamReader myReader = new StreamReader("DecodeThis.txt");
string line = "";
StreamWriter myWriter = new StreamWriter("Decoded.txt");
Console.WriteLine("Starting....");
while (line != null)
{
line = myReader.ReadLine();
if (line != null)
{
char[] charArray = line.ToCharArray();
Array.Reverse(charArray);
Console.WriteLine(charArray);
myWriter.WriteLine(charArray);
}
}
Console.WriteLine("Finished...");
Console.ReadLine();
}
}
}
-Polite-Active-Respectful-Atheist-Donator-Obliging-xerox?-
Are you trolling me? I don't care. Your thread may help someone that was too embarrassed to ask.
|
Messages In This Thread |
RE: [HELP] C# Homework 2. LearnVisualStudio [HELP] - by -paradox- - 10-28-2010, 06:40 PM
|
Users browsing this thread: 1 Guest(s)