Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27212

VS 2010 Text Files & Coding

$
0
0
Hi I need help with this task:
Create a user defined type of student information (name, age, contact number, gender). Create an array of your type to store 5 records (get user to populate this via the console). Then, write the contents to file in BINARY format.

So far I have a basic algorithm and a little bit of code which isn't even worth showing. Here's my algorithm. If anyone could help it would be brilliant!

OPEN File
SET Structure As Student
strStudentName
intStudentAge
intStudentContact
strStudent Gender
SET Array = arrStudent(4)
For i = 0 to 4
GET StudentName
GET StudentAge
GET StudentContact
GET StudentGender

WRITE to file

Next

Thanks a lot!

Viewing all articles
Browse latest Browse all 27212


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>