Jump to content

Text files

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
travy92

travy92

    Learning Programmer

  • Members
  • PipPipPip
  • 76 posts
hello, does anyone know how to make a ListBox fill with the text that a text file (eg. Accounts.txt) contains? And also a button that makes the text in List1 save to a .txt file.... I've tried using this code already:

Quote

Open "c:\Accounts.txt" For Output As #1

For i = 0 To List1.ListCount - 1
Print #1, List1.Index(i)
Next i

Close #1

But it comes up with an error saying:

Quote

Compile Error:
Wrong number of arguments or invalid property assignment.

Any help?
[SIGPIC]C:\Users\Travis\Desktop\Image Converter\Knight1.bmp[/SIGPIC]

#2
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Well I knew the code, but I forgot it.. will try to make some research for you in my projects.