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.
我知道如何读取 txt 文件,并在编辑控件中显示它的内容,但是如何写入 txt 文件来更新/覆盖编辑控件中的内容?
我到处寻找,虽然我可以写入带有设置文本的文件,但我希望能够写入编辑控制框,然后单击更新按钮,它将更新 notes txt 文件。
分两步进行。首先将编辑控件读入一个 CString 变量。然后将 CString 变量写入文件。