VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Write And Read A text File. I use it for login programs and admin progs!

by Mark Greenall (10 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sat 11th August 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Write And Read A text File. I use it for login programs and admin progs!

Rate Write And Read A text File. I use it for login programs and admin progs!



'in command button:
on error goto a
open (" file path and name and extension goes here ") for append as 1
print #1, text1.text
close 1
goto b
a:
msgbox "Couldnt Save!", vbcritical, "Error!"
end sub


'read a text file!
'in command button:
on error goto a
open (" file path and name and extension goes here! ")
input #1, msg
close 1
msg = text1
goto b
a:
msgbox "File Not Found!", vbcritical, "Error!"
b:
end sub

Download this snippet    Add to My Saved Code

Write And Read A text File. I use it for login programs and admin progs! Comments

No comments have been posted about Write And Read A text File. I use it for login programs and admin progs!. Why not be the first to post a comment about Write And Read A text File. I use it for login programs and admin progs!.

Post your comment

Subject:
Message:
0/1000 characters