I am having problems writing to a txt file using the StreamWriter class. I can get the data to write tot he file, but I need to be able to place that data at certain places within the file. For instance val1 needs to occupy the first 12 slots in the file, val2 needs to occupy the second 3 slots and so on and so forth. I have tried to use BaseStream.Seek to do this and I have also tried to use the StreamWriter.Write function to do this. When I hover over the StreamWriter.Write function it tells me void StreamWriter.Write(string value) (+20 overloads). Does anyone know how to write values to a file and specify what place in the file the value should take. In C++ I have code that will seek to a position in the file and then write the data. I need to do the same actions with C#. Your help is much appreciated.