Loading a listbox from a file
问题 This is my first time creating a C# program so I apologize if this question seems basic. I have 3 list boxes on my design form along with 3 buttons I'd like to load a list of item into each text box when I click the corresponding button for the listbox. can someone instruct me on how to do this. 回答1: Abbas has given you a sufficient answer, but there are a couple of problems with it, so I thought I would add my own response. The issues: Streams (anything that implements IDisposable ) need to