Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Quesion about .oct extentions

  1. Feb 6, 2017 #1
    Are these octave files? I have a program that ends in .oct that I am trying to reverse engineer, but I have no experience with .oct at all. If so, would matlab be the program to use to read the program?
  2. jcsd
  3. Feb 7, 2017 #2


    User Avatar
    Education Advisor
    Gold Member

    I don't think anyone can divine this based on the information. If you can't figure out to how open it I doubt you're going to have much success trying to reverse engineer whatever it is.

    Try it in matlab and see what happens.
  4. Feb 7, 2017 #3


    User Avatar

    Staff: Mentor

    First of all - try to open it with a notepad. If it is a program file, chances are it is just a text file with a different extension. If it is a binary file - notepad will just refuse to read it.
  5. Feb 7, 2017 #4


    Staff: Mentor

    If you're on Linux or some variant thereof you could use the hexdump command to view the contents and determine what you have.
  6. Feb 7, 2017 #5


    Staff: Mentor

  7. Feb 7, 2017 #6

    jim mcnamara

    User Avatar

    Staff: Mentor

    Also, most variants of UNIX, particularly Linux, have the file command, with broad capabilities to identify files based on what is in them. Not by extension.
    Try the file command
    Code (Text):

    file  [your filename goes here]
    It will tell you if it is an octave file. Many proprietary files, especially for opensource programs, have "magic" at the beginning of the file ex:
    Code (Text):
    so the extension (in the example it could be: .sh, .shl, .bash) does not really matter, except to humans. The OS or the program knows to pretty much ignore the extension and check "magic" first.

    It can usually identify source code file for common languages.

    Solaris and its descendants have a magic.h file to implement this for example.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted

Similar Discussions: Quesion about .oct extentions
  1. Not sure about this (Replies: 4)

  2. About computer (Replies: 4)

  3. About pipelining (Replies: 1)