×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Random File Creation Program

Random File Creation Program

Random File Creation Program

(OP)
need code for this:
Write a program that creates a random file containing academic info. using data entered from the console. Each record is 27 bytes long, and there should be at least 20 records. The record format is shown here:

Field                        Column
Student Number                 1
Last Name                      6
Course Taken                   19
Number of credits              27
Grade                          28

Here is some sample data to which you should add at least 17 more records:

10024ADAMS      ENG 11003A
23456BEAN       CIS 23014B
12345BOOKER     MAC 11325A

Using this file write a random file update program that
displays the following menu:

STUDENT FILE MAINTENANCE

S  Show a single record
A  Add a new record
C  Change a record
D  Delete a record
E  exit program

The user may select records by record number. After each of the menu functions is carried out, return to the menu. Test the prog with multiple additions, deletions, and changes to records.

RE: Random File Creation Program

What help in particular do you want with your coursework question?

0000:0000:0000:0000h
The people who have nothing to say and say it too loud have little knowledge, It's the quiet ones you need to worry about!

RE: Random File Creation Program

The whole point of coursework questions is that you learn the necessary skills, and you doing the work yourself can only achieve this. Of course I am more than happy to point you in the right direction!

0000:0000:0000:0000h
The people who have nothing to say and say it too loud have little knowledge, It's the quiet ones you need to worry about!

RE: Random File Creation Program

(OP)
i found out how to create the file...now... how do i write the data entered from the console into the file ???

RE: Random File Creation Program

Incidentally, what OS are you using?

"Information has a tendency to be free.  Which means someone will always tell you something you don't want to know."

RE: Random File Creation Program

(OP)
i use windows XP and i use MASM613

RE: Random File Creation Program

So... your intended platform is Win32?

try looking things up at:
win32asmboard.cjb.net

"Information has a tendency to be free.  Which means someone will always tell you something you don't want to know."

RE: Random File Creation Program

WriteFile()
ReadFile

Look 'em up.

It's recommended you do any manipulation in the memory before writing to the file.

"Information has a tendency to be free.  Which means someone will always tell you something you don't want to know."

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close