Files

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • danny

    #1

    Files

    hi

    could somone please tell me or point to a sorece of information which will
    explain what is happeneing on a physical level when i open/create a file in
    C.

    Danny


  • Victor Bazarov

    #2
    Re: Files

    danny wrote:[color=blue]
    > could somone please tell me or point to a sorece of information which will
    > explain what is happeneing on a physical level when i open/create a file in
    > C.[/color]

    First, for questions about C language, go to comp.lang.c. This is
    a newsgroup for C++, and those are two different languages.

    Second, if you want to know what's happening on a physical level,
    asking in a language newsgroup doesn't make much sense. Language is
    full of abstractions. Physical stuff is platform-specific. Ask in
    a newsgroup dedicated to your OS.

    V

    Comment

    • Howard

      #3
      Re: Files


      "danny" <dan.removetose ndschofield@vir gin.net> wrote in message
      news:Rj4Zc.119$ bw2.96@newsfe3-win.ntli.net...[color=blue]
      > hi
      >
      > could somone please tell me or point to a sorece of information which will
      > explain what is happeneing on a physical level when i open/create a file[/color]
      in[color=blue]
      > C.
      >
      > Danny
      >
      >[/color]

      On a physical level? What do you mean? Mechanically, inside a floppy
      drive? At the operating system level? If you can narrow down what you mean
      by the "physical" level, that alone will likely point you towards a better
      newsgroup to ask such questions. For example, there are newsgroups that
      discuss operating systems. And newsgroups for specific implementations ,
      such as for Borland or Microsoft products. In any case, nothing in the C++
      standard specifies anything about how files are opened (or even that they
      exist, as far as I know). (Also, note that this is a C++ newsgroup, not a C
      newsgroup.) You might also try some searching on groups.google.c om. That's
      a very handy source of links to info.

      -Howard




      Comment

      • Mike Wahler

        #4
        Re: Files

        "danny" <dan.removetose ndschofield@vir gin.net> wrote in message
        news:Rj4Zc.119$ bw2.96@newsfe3-win.ntli.net...[color=blue]
        > hi
        >
        > could somone please tell me or point to a sorece of information which will
        > explain what is happeneing on a physical level when i open/create a file[/color]
        in[color=blue]
        > C.[/color]

        1. This newsgroup discusses only C++, not C.
        comp.lang.c is just down the hall on the left.

        2. Both C and C++ use abstractions ('streams') to
        represent files. Neither specify a particular
        implementation or 'physical' behavior. This is
        because both languages are intentionally designed
        to be platform-independent. E.g. it's perfectly
        valid for a call to 'fopen()' to cause a drawer
        of the filing cabinet in my office to slide open.

        -Mike


        Comment

        • Till Crueger

          #5
          Re: Files

          On Tue, 31 Aug 2004 19:44:05 +0000, Mike Wahler wrote:[color=blue]
          > it's perfectly valid for a call to 'fopen()' to cause a drawer of the
          > filing cabinet in my office to slide open.[/color]

          Can I quote you on that?

          Till
          --
          Please add "Salt and Peper" to the subject line to bypass my spam filter

          Comment

          • Mike Wahler

            #6
            Re: Files


            "Till Crueger" <TillFC@gmx.net > wrote in message
            news:ch2phj$urq $1@f1node01.rhr z.uni-bonn.de...[color=blue]
            > On Tue, 31 Aug 2004 19:44:05 +0000, Mike Wahler wrote:[color=green]
            > > it's perfectly valid for a call to 'fopen()' to cause a drawer of the
            > > filing cabinet in my office to slide open.[/color]
            >
            > Can I quote you on that?[/color]

            Yes.

            -Mike


            Comment

            • Karthik Kumar

              #7
              [OT] Re: Files

              danny wrote:
              [color=blue]
              > hi
              >
              > could somone please tell me or point to a sorece of information which will
              > explain what is happeneing on a physical level when i open/create a file in
              > C.
              >
              > Danny
              >
              >[/color]
              As far as C is concerned, this particular operation is transparent.
              This would be defined by the implementation that you choose ( glibc / MS
              VC++ etc).
              If at all you are interested for *nix OS, then get the classic book
              by Maurice Bach - "The Design of the UNIX Operating System" where you
              get to know about inodes etc.

              --
              Karthik.

              Comment

              Working...