in reply to File Reading (.CHR file)

I need to read/view a .chr file by using perl script. I tried this code but the file handler is empty while executing the script. i got 'Startend' as output. This is my code
Did you get any warnings? If so, tell us what they are.

You could check the status of open:

open( NEWFILE, "C:\\cygwin\\home\\Administrator\\test.chr" ) or die $! +;
Are you sure your input file isn't empty?

Updated to show OP's original statement.

Replies are listed 'Best First'.
Re^2: .CHR file read
by sowraaj (Novice) on Dec 09, 2011 at 04:43 UTC

    Dear friend,

    I can view a file data but the data can't able understand the data format(i.e. it looks like binary data)

    Thanks

      file file

      head file |od -tacx1

      head file | hexdump

        Dear Friend,

        Can you explain how to convert the file into Octal/Hexadecimal format. I don't know how to convert it.

        Thanks