Own extension?

Discussion in 'Programming' started by Phlenix, Feb 2, 2008.

  1. #1
    Hi
    I was wondering if somebody could tell me how i could create my own extensions. for example: test.ext

    I want to create a .ext file and i program that can read it. Is that possible?
     
    Phlenix, Feb 2, 2008 IP
  2. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #2
    You should post more info:
    - Language: C, Java, PHP, PERL, ...
    - Operating system: Unix, HP-UX, Windows, ...
    - ...
     
    ajsa52, Feb 2, 2008 IP
  3. superstan

    superstan Peon

    Messages:
    244
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    for php or cgi:

    create a function for file reading.

    whatever extension you want, suppose: filename.flenix then create a function for file handling and
    read contents of file and interpret.

    or if you want a very simple solution, use Mod_Rewrite for apache servers. put whatever you want.
     
    superstan, Feb 3, 2008 IP
  4. Phlenix

    Phlenix Peon

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No i mean VB. Is it possible in VB?
     
    Phlenix, Feb 4, 2008 IP
  5. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #5
    In Windows, associating a file extension has nothing to do with the application itself, really, and everything to do with Windows.

    Generally you register the extensions during installation (most installers support this one way or another). Your application generally has to be able to accept a 'command line' parameter of some sort that indicates the file that was clicked on.

    I'd read up on 'registering file types in Windows'. Sorry I can't be any more specific: I haven't done this in a while...
     
    TwistMyArm, Feb 4, 2008 IP