spandex44: Nope - if DOC files were normal text files, how could you get the formatting? The files are in binary format.
This is how to (for example) copy Text1.Text to C:\Text1.Txt...
------------------Code:Dim nFile As Byte If Len(Dir("C:\Text1.Txt")) <> 0 Then If MsgBox("The file already exists! Would you like to overwrite it?", vbQuestion or vbYesNo, "File Exists") = vbNo Then Exit Sub ' Exit Function, Exit Property, Exit Room, Exit World, Exit Whatever End If End If nFile = FreeFile Open "C:\Text1.Txt" For Output As #nFile Print #nFile, Text1.Text Close #nFile
Yonatan
Teenage Programmer
E-Mail: [email protected]
ICQ: 19552879
AIM: RYoni69




Reply With Quote