0
Answer

Visual Studio Forms - Arrays and reading files

spencer20012

spencer20012

20y
1.7k
1
Hi, I have a visual studio form which enables aeroplanes to move based on a timer. I have two text files called up and down saved and need to read them in. They are a list of whether the next aircraft to land is a aeroplane or helicopter. They are simply in a list one after the other. eg aeroplane aeroplane helicopter ... They both need to be read in every 7 seconds except the doen text file will be read in at randomly half speed. (random.NextDouble()<0.5). I need then to put each one into an arraylist. Every time an aircraft is in the array i need to write this on a label on the form called label1 for up and label2 for down. can anyone show me the code i need to read in my text files put them into an array list and print them to a label? any help is appreciated