Search:

Type: Posts; User: yogiyogi

Search: Search took 0.75 seconds.

  1. Re: Reading an int from bytes(binary file) - HELP

    public static void main(String[] args){
    system.out.println(ReadInt(f));//f is a bmp file
    }


    public static int ReadInt(FileInputStream f)
    {
    try
    {
  2. Reading an int from bytes(binary file) - HELP

    public static int ReadInt(FileInputStream f)
    {
    try
    {

    int x = 0;
    int b = f.read();
    x += b;
    x = x << 8;
Results 1 to 2 of 2