So, do you just want to remove the section of code that asks the user to "Insert source diskette and press <ENTER>" ?
If so, a simple fix would be to do the following:
- Replace these lines of code:
>printf("\nInsert source diskette and press <ENTER>... ");
>i = getch();
>printf("\n");
with this one
>i = ENTER;
So it now looks like:
Code:
int read_disk(int drive, FILE *fp)
{
int i, error, size;
int track, cyl, sec, head;
error = FALSE;
i = ENTER;
if (i == ENTER)
{
i = get_drive_parameter(drive, fp);
.....
.....
Alternatively (and preferably), you could remove the if statement that checks the value of i against ENTER as this is no longer required.
If this hasn't helped.... ask again.