Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

    


reads a specified disk sector
 

 

Description

This reads a specified disk sector on a floppy disk in this case drive A .

Code

#include <stdio.h>
#include <dos.h>
#include <stdlib.h>
#include <bios.h>

int main(void)
{
unsigned char buffer[512];

clrscr();
printf("Insert disk in the A: drive , then press any key.\n");
/*wait for keypress*/
getch();
if(absread(0,1,1,&buffer) != 0)
printf("Cannot read the A drive.\n");
else
printf("Drive A , Sector 1 read\n");

return 0;

}

Information

tested using Turbo C and Windows 98 , DOS .

 

 

 

 

Download

absread.txt


 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
transparent form(VB)
Useful disk information(VBScript)
start windows explorer(Powershell)
Check a program is running(VB)
tile an image on a form(Visual Basic)
active window title(VB)
Do While loop(Javascript)
number of entries in a log file(VBScript)

    




Copyright © 2003 by programmershelp.co.uk