Reading a file

Discussion in 'Java' started by Java_tyro, Mar 9, 2011.

  1. Java_tyro

    Java_tyro New Member

    Joined:
    Apr 15, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    I want to read a file of bits and convert those bits in boolean array.

    Following is the file to read from

    3 indicates the no. of input strings.
    Then follows a blank line
    Each input string is separated by a blank line.
    ------------------------------------------

    3

    110
    111
    111
    110

    000100110011111
    100010110111011
    011110011101101
    011001111111001
    011011001111110
    101101110010011
    100111110110110
    001101101011110
    111010000000000
    010101111110100
    111011100101101
    111111001001110
    100111001000110
    101011010111000
    000011110001110
    011110000110101
    001101110011010
    101100011000001
    111111000011001
    001101110011101
    111110010110000
    000111110001011
    011100101100011
    000110001000001

    10110101100000111011010
    01101010110101001111010
    01111111001111011101010
    11001100011110101011110
    00000001011011100101110
    01010011110000111010101
    00001110011111001011110
    00101111110110101000010
    00001000101011100110111
    11111110100110111101111
    11110100001001010010001
    10000110000100011001111
    10100110001001010111101
    01000101000011010000110
    00111011000100001101000
    11111000011010011001100
    00110100011010001101101
    01000111111011100001101
    10110111010001010000011
    10100001001100100100000
    10110101011110100100100
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice