Input into Files

How do i input into files after i opened it

Comments

  • : How do i input into files after i opened it
    :

    Depends on how you opened it.

    OutPut, Append:
    Write, Print

    Random, Binary:
    Put

  • Open "c:folderfile.txt" For [b]Output[/b] as #1
    Print #1, "print this string"
    Close #1

    'using output will clear the file on open, and will also create the file if it dosnt exsit

    Open "c:folderfile.txt" For [b]Append[/b] as #1
    Print #1, "add this string"
    Close #1

    'using append will add the string onto the bottom of the file, the file had to exsit when opening
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories