Skip to content

Commit dfe48a6

Browse files
committed
Updates dated: 5-5-23
1 parent a481d87 commit dfe48a6

File tree

100 files changed

+1007
-1012
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+1007
-1012
lines changed

AS - FILING/File Operations.jpg

-67.8 KB
Binary file not shown.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
Module Module1
2-
3-
Sub Main()
4-
5-
Dim rollNo As Integer
6-
Dim sName, sContact As String
7-
Dim sFee As Decimal
8-
Dim isFeePaid As Boolean
9-
10-
Console.Write("Enter roll No. :")
11-
rollNo = Console.ReadLine
12-
13-
Console.WriteLine("Enter Name :")
14-
sName = Console.ReadLine
15-
16-
Console.Write("Enter contact :")
17-
sContact = Console.ReadLine
18-
19-
Console.Write("Enter fee amount :")
20-
sFee = Console.ReadLine
21-
22-
Console.Write("Is fee already paid? ")
23-
isFeePaid = Console.ReadLine
24-
25-
FileOpen(1, "d:\filePractice\sRec.txt", OpenMode.Output)
26-
27-
WriteLine(1, rollNo)
28-
WriteLine(1, sName)
29-
WriteLine(1, sContact)
30-
WriteLine(1, sFee)
31-
WriteLine(1, isFeePaid)
32-
33-
34-
FileClose(1)
35-
36-
Console.ReadKey()
37-
38-
End Sub
39-
40-
End Module
1+
Module Module1
2+
3+
Sub Main()
4+
5+
Dim rollNo As Integer
6+
Dim sName, sContact As String
7+
Dim sFee As Decimal
8+
Dim isFeePaid As Boolean
9+
10+
Console.Write("Enter roll No. :")
11+
rollNo = Console.ReadLine
12+
13+
Console.WriteLine("Enter Name :")
14+
sName = Console.ReadLine
15+
16+
Console.Write("Enter contact :")
17+
sContact = Console.ReadLine
18+
19+
Console.Write("Enter fee amount :")
20+
sFee = Console.ReadLine
21+
22+
Console.Write("Is fee already paid? ")
23+
isFeePaid = Console.ReadLine
24+
25+
FileOpen(1, "d:\filePractice\sRec.txt", OpenMode.Output)
26+
27+
WriteLine(1, rollNo)
28+
WriteLine(1, sName)
29+
WriteLine(1, sContact)
30+
WriteLine(1, sFee)
31+
WriteLine(1, isFeePaid)
32+
33+
34+
FileClose(1)
35+
36+
Console.ReadKey()
37+
38+
End Sub
39+
40+
End Module
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
Module Module1
2-
3-
Sub Main()
4-
5-
Dim rollNo As Integer
6-
Dim sName, sContact As String
7-
Dim sFee As Decimal
8-
Dim isFeePaid As Boolean
9-
10-
11-
FileOpen(1, "c:\filePractice\sRec.txt", OpenMode.Input)
12-
13-
14-
Input(1, rollNo)
15-
Input(1, sName)
16-
Input(1, sContact)
17-
Input(1, sFee)
18-
Input(1, isFeePaid)
19-
20-
Console.WriteLine("Roll Number: " & rollNo)
21-
Console.WriteLine("Name: " & sName)
22-
Console.WriteLine("Contact: " & sContact)
23-
Console.WriteLine("Fee Amount: " & sFee)
24-
Console.WriteLine("Fee Paid? " & isFeePaid)
25-
FileClose(1)
26-
27-
Console.ReadKey()
28-
29-
30-
31-
32-
33-
34-
End Sub
35-
36-
End Module
1+
Module Module1
2+
3+
Sub Main()
4+
5+
Dim rollNo As Integer
6+
Dim sName, sContact As String
7+
Dim sFee As Decimal
8+
Dim isFeePaid As Boolean
9+
10+
11+
FileOpen(1, "c:\filePractice\sRec.txt", OpenMode.Input)
12+
13+
14+
Input(1, rollNo)
15+
Input(1, sName)
16+
Input(1, sContact)
17+
Input(1, sFee)
18+
Input(1, isFeePaid)
19+
20+
Console.WriteLine("Roll Number: " & rollNo)
21+
Console.WriteLine("Name: " & sName)
22+
Console.WriteLine("Contact: " & sContact)
23+
Console.WriteLine("Fee Amount: " & sFee)
24+
Console.WriteLine("Fee Paid? " & isFeePaid)
25+
FileClose(1)
26+
27+
Console.ReadKey()
28+
29+
30+
31+
32+
33+
34+
End Sub
35+
36+
End Module
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
Module Module1
2-
3-
Sub Main()
4-
5-
Dim rollNo As Integer
6-
Dim sName, sContact As String
7-
Dim sFee As Decimal
8-
Dim isFeePaid As Boolean
9-
10-
FileOpen(1, "c:\filePractice\sRec.txt", OpenMode.Input)
11-
12-
While Not EOF(1)
13-
14-
Input(1, rollNo)
15-
Input(1, sName)
16-
Input(1, sContact)
17-
Input(1, sFee)
18-
Input(1, isFeePaid)
19-
20-
Console.WriteLine("Student roll no. :" & rollNo)
21-
Console.WriteLine("Student name :" & sName)
22-
Console.WriteLine("Student contact :" & sContact)
23-
Console.WriteLine("Student fee amount Rs." & sFee)
24-
Console.WriteLine("Is Fee Paid? " & isFeePaid)
25-
26-
End While
27-
28-
FileClose(1)
29-
30-
31-
32-
33-
34-
35-
36-
37-
Console.ReadKey()
38-
39-
End Sub
40-
41-
End Module
1+
Module Module1
2+
3+
Sub Main()
4+
5+
Dim rollNo As Integer
6+
Dim sName, sContact As String
7+
Dim sFee As Decimal
8+
Dim isFeePaid As Boolean
9+
10+
FileOpen(1, "c:\filePractice\sRec.txt", OpenMode.Input)
11+
12+
While Not EOF(1)
13+
14+
Input(1, rollNo)
15+
Input(1, sName)
16+
Input(1, sContact)
17+
Input(1, sFee)
18+
Input(1, isFeePaid)
19+
20+
Console.WriteLine("Student roll no. :" & rollNo)
21+
Console.WriteLine("Student name :" & sName)
22+
Console.WriteLine("Student contact :" & sContact)
23+
Console.WriteLine("Student fee amount Rs." & sFee)
24+
Console.WriteLine("Is Fee Paid? " & isFeePaid)
25+
26+
End While
27+
28+
FileClose(1)
29+
30+
31+
32+
33+
34+
35+
36+
37+
Console.ReadKey()
38+
39+
End Sub
40+
41+
End Module
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
Module Module1
2-
3-
Sub Main()
4-
Dim rollNo As Integer
5-
Dim sName, sContact As String
6-
Dim sFee As Decimal
7-
Dim isFeePaid, moreRecs As Boolean
8-
9-
FileOpen(1, "c:\filePractice\sRec.txt", OpenMode.Append)
10-
11-
Do
12-
Console.Write("Enter roll number: ")
13-
rollNo = Console.ReadLine
14-
15-
Console.WriteLine("Enter student name: ")
16-
sName = Console.ReadLine
17-
18-
Console.Write("Enter student contact: ")
19-
sContact = Console.ReadLine
20-
21-
Console.Write("Enter fee amount: ")
22-
sFee = Console.ReadLine
23-
24-
Console.Write("Is fee paid? ")
25-
isFeePaid = Console.ReadLine
26-
27-
WriteLine(1, rollNo)
28-
WriteLine(1, sName)
29-
WriteLine(1, sContact)
30-
WriteLine(1, sFee)
31-
WriteLine(1, isFeePaid)
32-
33-
Console.Write("Want to ad next record? True/false: ")
34-
moreRecs = Console.ReadLine
35-
Loop Until moreRecs = False
36-
37-
FileClose(1)
38-
End Sub
39-
40-
End Module
1+
Module Module1
2+
3+
Sub Main()
4+
Dim rollNo As Integer
5+
Dim sName, sContact As String
6+
Dim sFee As Decimal
7+
Dim isFeePaid, moreRecs As Boolean
8+
9+
FileOpen(1, "c:\filePractice\sRec.txt", OpenMode.Append)
10+
11+
Do
12+
Console.Write("Enter roll number: ")
13+
rollNo = Console.ReadLine
14+
15+
Console.WriteLine("Enter student name: ")
16+
sName = Console.ReadLine
17+
18+
Console.Write("Enter student contact: ")
19+
sContact = Console.ReadLine
20+
21+
Console.Write("Enter fee amount: ")
22+
sFee = Console.ReadLine
23+
24+
Console.Write("Is fee paid? ")
25+
isFeePaid = Console.ReadLine
26+
27+
WriteLine(1, rollNo)
28+
WriteLine(1, sName)
29+
WriteLine(1, sContact)
30+
WriteLine(1, sFee)
31+
WriteLine(1, isFeePaid)
32+
33+
Console.Write("Want to ad next record? True/false: ")
34+
moreRecs = Console.ReadLine
35+
Loop Until moreRecs = False
36+
37+
FileClose(1)
38+
End Sub
39+
40+
End Module

0 commit comments

Comments
 (0)