c# - Streamwriter Class
===

Iam trying to write a `List<string>` to a file with the `StreamWriter`class.
When iam passing the args (in debugging mode) to the `write_lines()` function the program stops without any error.
Maybe someone has a clue what iam doing wrong

        public class Writer
    {
        private StreamWriter the_writer;
        private string PS_filepath;

        public Writer()
        {
            
        }

        public void write_lines(List<string> thelines, string path)
        {
            this.PS_filepath = path;
            this.the_writer = new StreamWriter(PS_filepath, true);
            
            foreach(string line in thelines)
            {
                the_writer.WriteLine(line);
            }
        }
    }

`Path var is C:\path\text.xyz`