分享

VFB_文本读写

 nxhujiee 2020-07-09
'' Write out text file:
Open "test.txtFor OutPut As #1
Print #1, "Hello,"
Print #1, ""
Print #1, "this is an example text file,"
Print #1, "generated with the help of FreeBASIC."
Close #1
'' ---
'' Display text file line by line:
Open "test.txtFor Input As #1
Dim As String ln
Do UntilEOF(1)
    
Line Input #1, ln
    Print ln
Loop
Close #
1
Sleep 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约