11-09-20, 04:55 AM
11-09-20, 08:44 AM
يمكنك استخدام StreamReader لقراءة الملف و StreamWriter للكتابة في ملف جديد :
True في StreamWriter(outFilePath, True) تعني انه سيضيف الى نهاية الملف
كود :
Dim file1Path As String = "E:\1.txt"
Dim file1 As String
Using reader As New IO.StreamReader(file1Path)
file1 = reader.ReadToEnd
End Using
Dim file2Path As String = "E:\2.txt"
Dim file2 As String
Using reader As New IO.StreamReader(file2Path)
file2 = reader.ReadToEnd
End Using
Dim outFilePath As String = "E:\out.txt"
Using writer As New IO.StreamWriter(outFilePath, True)
writer.Write(file1)
writer.Write(file2)
End UsingTrue في StreamWriter(outFilePath, True) تعني انه سيضيف الى نهاية الملف
11-09-20, 07:44 PM
مشكور اخي علي الرد الجميل
وسمحني اذ غلبتك
![[صورة مرفقة: p_1715wl6tq1.gif]](https://i.top4top.io/p_1715wl6tq1.gif)
وسمحني اذ غلبتك
![[صورة مرفقة: p_1715wl6tq1.gif]](https://i.top4top.io/p_1715wl6tq1.gif)
![[صورة مرفقة: p_1714p9azj1.gif]](https://j.top4top.io/p_1714p9azj1.gif)