I have three arays:
string[] comet1 ={comenta1,comenta2,coment3,......This way for all the selected elements};
string[] paramet1 = { long1,long2,lon2,......};
string[] parametr2={ alt1,alt2,alt2,......};
TextWriter tw = new StreamWriter("C:/archivo.txt")
// añadir linea de texto al archivo de texto
for (int i = 0; i < comet1.Length; i++)
{
tw.WriteLine(comet1[i]);
}
for (int a = 0; a < paramet1.Length; a++ )
{
tw.WriteLine(paramet1[a]);
}
Using that code the data is added to the txt
file as following:
comenta1
comenta2
long1
long2
.....
What I want to do is :
comenta1/long1
comenta2/long2
......
I tried:
tw.WriteLine(comet1[i] + "\\" + paramet1[a]);
But that only adds the first line two times!