using UnityEngine;
using System.Collections;
using System.IO;
public class script : MonoBehaviour {
public string filetosave;
void Start()
{
if (filename == "") filename = "Assets/file.txt";
}
public void OnClick() //I use unity UI
{
using (StreamWriter writer = new StreamWriter(filetosave))
{
writer.WriteLine(); // line which I want to skip
writer.WriteLine("some data");
writer.Close();
}
}
}
How can I write data to the second line, so as not to overwrite the first,
does not work that says you can not wrie anything (which is logical), how can I write a second line?
cs used