Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图让我的程序有一个对话框,其中包含已在文件中设置的密码。我需要帮助它扫描文件中的一行代码,如果密码输入为真,则继续。
此代码获取密码并将其与文件中的密码进行比较:
INPUT "Password", x$ OPEN "password.dat" FOR INPUT AS #1 INPUT #1, y$ IF x$ = y$ THEN PRINT "Match": ' do stuff