Click here to Skip to main content
14,427,747 members
Rate this:
Please Sign up or sign in to vote.
See more:
I did a small project in MFC(VC++). There by using handle, createfile and readfile functions i am reading the data sector by sector. Is there any functions in in java to read the data sector wise ?
Posted
Rate this:
Please Sign up or sign in to vote.

Solution 2

See http://docs.oracle.com/javase/tutorial/essential/io/fileio.html[^] for information on the Java File I/O system. Assuming you can open the file or device then it should be broadly the same as in C++.
   
Rate this:
Please Sign up or sign in to vote.

Solution 1

You can't do this. The reason is Java can't call Windows API directly.

You can use Java Native Interface (JNI) for calling Windows APIs.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100