I have an VB.NET app that writes the status to a log file in text format. Over time, the file is getting large and I wanted to know if there is an efficient way to truncate the beginning of the file. 

To make things easier, I am looking to specify a file size (say 2-3 mb) and I am writing the log using a StreamWriter:

```
Using strm As New IO.StreamWriter(filelocation.log, True)
    strm.WriteLine("msg to write")
    strm.Close()
End Using

```

I thought about using the `strm.BaseStream.Length` to determine how much of the file to cut off, but by using the `.SetLength` it would cut from the end - not the desired result.