
06-05-2006, 18:17
|
 |
|
|
חבר מתאריך: 23.09.03
הודעות: 12,154
|
|
|
כיצד ניתן לשמור מידע לקובץ txt תוך כדי שמירת המידע הקודם? (VB)
או במילים אחרות, כיצד ניתן להוסיף שורות לאותו קובץ txt ללא מחיקת השורות הקודמות?
יש לי את הקוד הנ"ל שיוצר ושומר את הקובץ:
קוד:
Private Sub Command2_Click()
On Error Resume Next
Open "C:\WINDOWS\Desktop\Nicknames.txt" For Output As #1
Print #1, (mynick)
Close #1
intMsg = MsgBox("Nick name saved")
End Sub
תודה מראש.
_____________________________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rick Cook
נערך לאחרונה ע"י DeepSpace בתאריך 06-05-2006 בשעה 18:19.
|