-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFiling Task 1.4.vb
More file actions
35 lines (22 loc) · 829 Bytes
/
Filing Task 1.4.vb
File metadata and controls
35 lines (22 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Module Module1
Sub Main()
'Task 1.4 New members data input
Dim choice2 As String
choice2 = ""
Dim IDnumber As Integer = 0
Dim mName As String = ""
Do
Console.Write(" Please enter the name: ")
mName = Console.ReadLine
Console.Write(" Please enter the member ID number: ")
IDnumber = Console.ReadLine
Console.Write("Do you wish to enter more new members? (Y/N)")
choice2 = Console.ReadLine
FileOpen(1, "C:\Filing Practice\ClubMembers.txt", OpenMode.Append)
WriteLine(1, mName)
WriteLine(1, IDnumber)
FileClose(1)
choice2 = UCase(choice2)
Loop Until (choice2 = "N")
End Sub
End Module