Is This an "rtf" or "csv" File?

Ask a Question related to UNIX Programming, Design and Development.

  1. #1

    Default Re: Is This an "rtf" or "csv" File?

    On Thu, 07 Aug 2003 02:42:21 GMT, Terry <a@b.c> wrote:
    >
    > My application creates a file that is both an rtf (Rich Text Format) file
    > and a csv (Comma Separated Values) file.
    How can it be both?
    >
    > What should the file extension be? .rtf or .csv?
    Will tell you later...
    >
    > Any opinions will be appreciated.
    The Rockies won/lost record may be the best in years, but they've still got
    a long way to go.
    >
    > Thank you.
    You're welcome!

    --Marc



    Marc Rochkind Guest

  2. Similar Questions and Discussions

    1. Proj cannot run on LCDS 2.6 ES due to "Unable to resolveresource bundle "datamanagement" for locale "en_US"
      hi, all, We have developped an application on Flex Build 3 (run successfully), but failed when we try to deploy it on Tomcat with LCDS 2.5 ES...
    2. how to get a file from the "Testing Server" / "remote view"
      if I want to get a particular file from the "Testing Sever" or "remote view" in my extension, how can i do so? Thanks a lot!!!
    3. CFINPUT type="radio" w/ "value" requires "label"
      On a Flash form, when you specify type='radio' and value='whatever', the value of the 'value' attribute will be displayed as a label if no 'label'...
    4. "Start" "Program" "Menu" list is empty
      For what ever reason my list of installed programs in my "Start" "Programs" menu is empty. Anyone know how to restore the list. Thanks for your...
    5. How to make the "search text" feature work with non "txt" file
      On Fri, 27 Jun 2003 07:19:23 -0700, "Juergen" <anhorn@bktel.com> wrote: See MVP Doug Knox' comments and fix here:...
  3. #2

    Default Re: Is This an "rtf" or "csv" File?

    On Thu, 7 Aug 2003, Terry wrote:
    > My application creates a file that is both an rtf (Rich Text Format) file
    > and a csv (Comma Separated Values) file.
    How can it be both?
    > What should the file extension be? .rtf or .csv?
    It doesn't matter. UNIX doesn't do silly things like
    interpret the meanings of file extensions (unlike certain
    poor excuses for operating systems that come from Redmond).
    You can call them .myfunkyformat for all UNIX cares.

    --
    Rich Teer, SCNA, SCSA

    President,
    Rite Online Inc.

    Voice: +1 (250) 979-1638
    URL: [url]http://www.rite-online.net[/url]

    Rich Teer Guest

  4. #3

    Default Re: Is This an "rtf" or "csv" File?

    On Thu, 07 Aug 2003 03:32:58 GMT, Rich Teer <rich.teer@rite-group.com>
    wrote:

    [snip]
    >
    > It doesn't matter. UNIX doesn't do silly things like
    > interpret the meanings of file extensions (unlike certain
    > poor excuses for operating systems that come from Redmond).
    > You can call them .myfunkyformat for all UNIX cares.
    >
    If by "UNIX" you mean the kernel, I suppose that's right. But, there's lots
    of stuff above the kernel level that comes up a lot is this newsgroup. Like
    compilers, web servers, makefiles, etc., all of which interpret the part of
    the file name after the dot.

    Suffixes (.c, .o, .y, .l, etc.) have been in "UNIX" since the earliest
    days...

    --Marc
    Marc Rochkind Guest

  5. #4

    Default Re: Is This an "rtf" or "csv" File?

    in comp.unix.programmer i read:
    >My application creates a file that is both an rtf (Rich Text Format) file
    >and a csv (Comma Separated Values) file.
    i do not believe this is possible, but ...
    >What should the file extension be? .rtf or .csv?
    why does it matter? this is unix, we don't need no stinking extensions.
    (not that file is likely to know what to make of it.)

    --
    a signature
    those who know me have no need of my name Guest

  6. #5

    Default Re: Is This an "rtf" or "csv" File?

    On 07 Aug 2003 05:26:34 GMT, those who know me have no need of my name
    <not-a-real-address@usa.net> wrote:

    [snip]
    >
    > why does it matter? this is unix, we don't need no stinking extensions.
    > (not that file is likely to know what to make of it.)
    >

    I'm baffled by this comment, as well as a similar one from Rich Teer.
    "Extensions" have been heavily used in UNIX for over 30 years!

    --Marc
    Marc Rochkind Guest

  7. #6

    Default Re: Is This an "rtf" or "csv" File?

    Marc Rochkind <rochkind@basepath.com> writes:
    >> why does it matter? this is unix, we don't need no stinking extensions.
    >> (not that file is likely to know what to make of it.)
    >>
    >
    >
    > I'm baffled by this comment, as well as a similar one from Rich
    > Teer. "Extensions" have been heavily used in UNIX for over 30 years!
    True, but they are not used in the same way as in mswindows. Imagine
    the confusion that resulted when someone at my university posted some
    FrameMaker documents with filenames ending in .doc.

    --
    Måns Rullgård
    [email]mru@users.sf.net[/email]
    Måns Rullgård Guest

  8. #7

    Default Re: Is This an "rtf" or "csv" File?

    On Thu, 07 Aug 2003 17:28:31 +0200, Måns Rullgård
    <mru@users.sourceforge.net> wrote:

    [snip]
    >
    > True, but they are not used in the same way as in mswindows. Imagine
    > the confusion that resulted when someone at my university posted some
    > FrameMaker documents with filenames ending in .doc.
    >

    I still don't follow! UNIX systems have upper-level application
    environments (KDE, Mac OS X) that treat suffixes (or extensions) EXACTLY as
    in Windows. For example, in KDE, if you double-click on a file, it attempts
    to open it based on its suffix.

    The confusion you refer to happens in UNIX, too.

    (The Macintosh does it right. Every file can have a resource fork that is a
    collection of attributes. UNIX does it wrong, and Windows copied the UNIX
    approach!)

    --Marc
    Marc Rochkind Guest

  9. #8

    Default Re: Is This an "rtf" or "csv" File?


    Thanks Erik,

    Now, what if it is a unicode text file containing comma separated values?
    Would you argue that it should be .utx?

    Thanks.



    on 8/6/03 9:59 PM, Erik Max Francis wrote:
    > Terry wrote:
    >
    >> You mean it can't be both? Its a csv file who's text encoding is rtf.
    >> Put
    >> another way, its an rtf file that contains comma separated values.
    >
    > In that case it's an .rtf file. If you wanted to be clever, you could
    > call it a .csv.rtf.
    >
    > --
    > Erik Max Francis && [email]max@alcyone.com[/email] && [url]http://www.alcyone.com/max/[/url]
    > __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
    > / \ It's a man's world, and you men can have it.
    > \__/ Katherine Anne Porter
    Terry Guest

  10. #9

    Default Re: Is This an "rtf" or "csv" File?

    Terry wrote:
    > Now, what if it is a unicode text file containing comma separated
    > values?
    > Would you argue that it should be .utx?
    Probably .csv.

    Remember that filename extensions mean much less in Unix systems than
    they do in other operating systems, like DOS/Windows. In Unix they're
    more for convenience for _you_, and applications you use; they mean
    nothing significant to the operating system itself.

    Consequently, there's no special meaning to a Unix file ending in .txt
    other than that it's probably a text file. Whether it's ASCII, Latin-1,
    UTF-8, UTF-16, etc. is completely up to you and whatever applications
    you want to use with it. Most applications are far more lenient with
    file extensions on Unix than on, say, Windows, simply because they have
    much less significant internal meaning on Unix. (Yes, of course they're
    used on Unix, but they are not _mandated_ in the same way they are in
    Windows.)

    --
    Erik Max Francis && [email]max@alcyone.com[/email] && [url]http://www.alcyone.com/max/[/url]
    __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
    / \ All I know is / I need you in my life
    \__/ India Arie
    Erik Max Francis Guest

  11. #10

    Default Re: Is This an "rtf" or "csv" File?

    On Thu, 7 Aug 2003, Erik Max Francis wrote:
    > > values?
    > > Would you argue that it should be .utx?
    >
    > Probably .csv.
    I think the OP should just use the generic ".dat" and be
    done with it. :-)

    --
    Rich Teer, SCNA, SCSA

    President,
    Rite Online Inc.

    Voice: +1 (250) 979-1638
    URL: [url]http://www.rite-online.net[/url]

    Rich Teer Guest

  12. #11

    Default Re: Is This an "rtf" or "csv" File?

    Marc Rochkind wrote:
    > On Thu, 07 Aug 2003 17:28:31 +0200, Måns Rullgård
    > <mru@users.sourceforge.net> wrote:
    >
    > [snip]
    >>
    >> True, but they are not used in the same way as in mswindows. Imagine
    >> the confusion that resulted when someone at my university posted some
    >> FrameMaker documents with filenames ending in .doc.
    >>
    > I still don't follow! UNIX systems have upper-level application
    > environments (KDE, Mac OS X)
    These are only *applications*, *not* the OS.
    > that treat suffixes (or extensions) EXACTLY
    > as in Windows.
    No. The concept of extension interpretation is more tightly bound
    to the operating system in windoze.
    > For example, in KDE, if you double-click on a file, it
    > attempts to open it based on its suffix.
    Russell Shaw Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139