i dont think u can seek to a specific spot in the file to replace just that line, however, someone else should reaffirm this, or otherwise disprove it. here, i took a little time just now and wrote a sub which will replace any line # in a file, with the string you desire: Private Sub TextLineWriter(ByVal fileName As String, ByVal lineNumberToReplace As Integer, ByVal textToWrite As String) Dim inFile As IO.StreamReader = IO.File.OpenText(fileName) Dim tempString(-1) As String Dim i As Byte 'read the file given and save each line into a new array element string Do Until inFile.Peek = -1 ReDim Preserve tempString(tempString.Length) tempString(tempString.Length - 1) = inFile.ReadLine Loop inFile.Close() 'determine if supplied 'numberToReplace' is valid with the current file, 'and correct the problem if so If lineNumberToReplace - 1 > tempString.Length - 1 Then lineNumberToReplace = tempString.Length ElseIf lineNumberToReplace - 1 < 1 Then lineNumberToReplace = 1 End If 'write the 'textToWrite' at the line number given tempString(lineNumberToReplace - 1) = textToWrite 'create same file as given (overwriting it) and rewrite the entire file Dim outFile As IO.StreamWriter = IO.File.CreateText(fileName) For i = 0 To tempString.Length - 1 outFile.WriteLine(tempString(i)) Next outFile.Close() End Sub use it like this: TextLineWriter("C:\myFile.txt", 3, "Here is my newly put text.") no need to use Imports system.io for it, it is already specified in the sub. just copy and paste this exact, as is sub and test it out. please lemme know if this helps. ------------------------ Jordan. III