Hello, am a newbie in c#.. i have a question, how do you use read data from file and use it?
my data file is something like this:
Name amount1 amount2
johen 1234 231411
i have this code so far:
using System;
using System.Data;
using System.IO;
class Class1
{
static void Main(string[] args)
{
string value;
StreamReader sr = new StreamReader("Aqua.txt");
value=sr.ReadToEnd();
Console.WriteLine(""+value);
sr.Close();
Console.Read();
}
}
but my code so far only read it but how do i use the value in it?
thx for any help and sorry if my english is bad...