Hi there folks. I am working on a program to keep track of student marks for report cards. I am using a listview, and have it set up the way I want it.

The first column will have the student names. I have a behavior tracking program that keeps their names in a textfile, and I would like to use that textfile. I am used to loading a textfile into a listbox, but this time I want to load them as the list items for the first column of the listview.

This is what I have so far.

VB Code:
  1. 'Set up the listview
  2. lvwbook.View = lvwReport
  3. lvwbook.GridLines = True
  4.  
  5. Dim li As ListItem
  6.  
  7. With lvwbook
  8.     .ColumnHeaders.Add , , "Student Name"
  9.  
  10.  
  11.     Set li = .ListItems.Add(, , "Row1Item1")
  12.  
  13.  
  14.  
  15.  
  16. End With

So in this case of just adding Row1Item1, I would like to load the textfile Roster6.txt

Would anyone know how I can do that?

Thanks!!