Find the answer to your Linux question:
Results 1 to 6 of 6
I am working with program which gives me 5 files(vel1,vel2....) in binary format.How to open them,to get standard ascii output?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2010
    Posts
    44

    problems with binary file


    I am working with program which gives me 5 files(vel1,vel2....) in binary format.How to open them,to get standard ascii output?

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,229
    There is no way to tell, unless you provide more information.
    A binary file can be anything. mp3, jpg, elf, database,... even textfiles.

    So,
    - which program produces these five files?
    - can you please run
    Code:
    file vel1
    - not sure, if this is what you want, but this will output the printable characters of a file
    Code:
    strings vel1
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    May 2010
    Posts
    44
    It is a fortran code,vel is fpr velocities output.
    milenko@hp6830s:~/cz/fast/2d_example_linux/final1$ file vel1
    vel1: data
    milenko@hp6830s:~/cz/fast/2d_example_linux/final1$ strings vel1
    milenko@hp6830s:~/cz/fast/2d_example_linux/final1$
    Thanks for help!

  4. #4
    Just Joined!
    Join Date
    May 2010
    Posts
    44
    When I open vel1 with text editor I get something like this:
    � � f . �
    That is just part of the code.
    Still do not have idea how to convert it to ascii format.

  5. #5
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,229
    If this is complied code, then you need a appropiate decompiler.
    And if optimization was turned on, it might not even be possible.
    You must always face the curtain with a bow.

  6. #6
    Just Joined!
    Join Date
    May 2010
    Posts
    44
    I will explain with more detils.The program FAST calculates velocities at specific nodes(points).The file vel1 is the output of compiled code.If I want to use code I must start from ASCII because that is the only way how I can present sources,receivers and parametrization.So I must convert this to ASCII somehow.
    Irithori thanks for help.
    Issue of decompiler is still unclear to me?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •