Trying to work out this problem Chapter 7.3 #30 (have most of it but it is not w
ID: 440689 • Letter: T
Question
Trying to work out this problem Chapter 7.3 #30 (have most of it but it is not working correctly.) Public Class Form1 Structure Justice Dim Firstname, Lastname, apptPres, State As String Dim yrAppointed, yrLeft As Double End Structure Dim justices() As Justice Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Dim JusticeRecords() As String = IO.File.ReadAllLines("Justics.txt") Dim n As Integer = JusticeRecords.Count - 1 ReDim Justices(n) Dim line, Data() As String For I As Integer = 0 To (n) line = (JusticeRecords(I)) Data = line.Split(","c) Justices(I).Firstname = Data(0) Justices(I).Lastname = Data(1) Justices(I).apptPres = Data(2) Justices(I).State = Data(3) justices(I).yrAppointed = Data(4) justices(I).yrLeft = Data(5) Next End Sub End ClassExplanation / Answer
Its better if you post the problem statement, I am not able to understand It seems like you are doing I/o operation ,if so this might help you http://www.mkyong.com/tutorials/java-io-tutorials/