M
mario
I'm new in C#.
I don't know how to read from the "file.txt" line that is seperated with #
example
name#address
name2#address
and to put that into
class k{
public k(){
string n=null;
string ad=null;
}
public k(string a,string b){
string n=b;
string ad=b;
}
private string n;
private string ad;
}
Do I need frst count \n and create object as many as there are \n??
I don't know how to read from the "file.txt" line that is seperated with #
example
name#address
name2#address
and to put that into
class k{
public k(){
string n=null;
string ad=null;
}
public k(string a,string b){
string n=b;
string ad=b;
}
private string n;
private string ad;
}
Do I need frst count \n and create object as many as there are \n??