First off, sorry for buggin you guys with these stupid "noob" posts, thanks for your help-im just a beginner![]()
okay, heres my code:
works good, but i want it so that if there is something already saved to demo.txt that it will not over write it..Code:Private Sub Command1_Click() Dim hFile As Long Dim sFilename As String sFilename = (App.Path & "\demo.txt") 'obtain the next free file handle from the 'system and and save the text box contents hFile = FreeFile Open sFilename For Output As #hFile Print #hFile, Text1.Text, Text2.Text Close #hFile End Sub
i cant figure out if i should be like
if demo.txt = full then
, Print #hFile, Text1.Text, Text2.Text
hope you understand..thanks for all your help




Reply With Quote