Methods to handle filename extensions?



I need assistance coming up with a clean way to handle filename
extensions with my application.

While I can come up with several ways of doing so on my own, I felt
perhaps it would be worth asking here to see what more effective or
accepted methods for doing would be presented.

The issue is this. My application accepts files names, intended for
a cross platform unix and windows environment, from the command line.
So the application may get a file name '/home/joe/myExample.ct',
'C:\Work\myExample.ct' or more generically 'myExample.ct' My
application is to convert the data in the .ct file, into something new,
then enter the data into a file in the local directory the application
was executed named 'myExample.out'.

Is their a simplified way to handle this problem?

Tony

.



Relevant Pages

  • Re: Methods to handle filename extensions?
    ... > I need assistance coming up with a clean way to handle filename ... > extensions with my application. ... have an appropriate newsgroups line in your header for your mail to be seen, ...
    (comp.lang.c.moderated)
  • Re: Find and List files matching file extension - inside zip files !
    ... Just because he asked about "extensions" ... use of filename suffixes themselves to know the distinction between ... What people have said is that MIME type filename extensions already long ...
    (comp.os.linux.setup)
  • Re: Search in XP
    ... (all or part of a filename). ... those with extensions on a list.... ... >Download it from here: ... >Agent Ransack can save the search result to a file, as text, ...
    (microsoft.public.windowsxp.general)
  • RE: File extensions spoofable in MSIE download dialog
    ... File extensions spoofable in MSIE download dialog ... allows executables to run as soon as a user has elected to open what ... provided in the link over the filename suggested by the header's filename ... Here is the ASP equivalent code to StatiC's php tidbit (tested under both ...
    (Bugtraq)
  • Re: Windows Media Player executes WMF content in .MP3 files.
    ... The Unix kernel (and I apologise for using the word ... > does the same thing that people are upset about Windows Media Player doing. ... If the platform traditionally uses extensions to determine ... fooled into thinking that the filename is important, ...
    (comp.security.misc)