Hello all, this is my first post to these boards though I have been using them as a resource for a couple of months now. I am taking my first programming class and I have a question. I have created a class called EmployeeList I need to create a method via the constructor that accepts one argument:The name of a sequential file to read. As it reads the file it will populate an array of Employee structures that is hidden from the developer. Here is what I have so far..not much, but damn IO confuses me almost as much as dynamic arrays do..Thanks in advance for the help
Option Explicit On
Option Strict On
Imports System.Convert
Imports System.IO
Namespace Employees
Public Class EmployeeList
Public Structure Employee
Public ID As Integer
Public LastName As String
Public FirstName As String
Public SSN As String
Public HourlyWage As Double
Public HoursWorked As Double
Public Function FullName() As String
Return FirstName & " " & LastName
End Function
Public Function Pay() As Double
Return HourlyWage * HoursWorked
End Function
End Structure
Private SampleRecord() As Employee
End Class
Option Explicit On
Option Strict On
Imports System.Convert
Imports System.IO
Namespace Employees
Public Class EmployeeList
Public Structure Employee
Public ID As Integer
Public LastName As String
Public FirstName As String
Public SSN As String
Public HourlyWage As Double
Public HoursWorked As Double
Public Function FullName() As String
Return FirstName & " " & LastName
End Function
Public Function Pay() As Double
Return HourlyWage * HoursWorked
End Function
End Structure
Private SampleRecord() As Employee
End Class