Skip to content

Java method to read .bin files and output several conversions.

Notifications You must be signed in to change notification settings

toledosq/Bin-file-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Bin-file-reader

COSC 3327 Assignment

Java method to read .bin files and output several conversions.

This java method performs the following actions:

  1. Open a .bin filename provided by user
  2. Read a 32-bit number from the file
  3. Display the 32-bit binary number including leading zeroes
  4. Display the 8-digit hexadecimal conversion including leading zeroes
  5. Display a 6-bit unsigned base-10 integer parsed from bits 21-16 of the number
  6. Display a 16-bit unsigned base-10 integer parsed from bits 15-0 of the number
  7. Repeat from step 2 until EOF is reached
  8. Close the file

About

Java method to read .bin files and output several conversions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages