473,385 Members | 1,602 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
Jul 22 '05 #1
6 1176
danny wrote:
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.


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
Jul 22 '05 #2

"danny" <da***********************@virgin.net> wrote in message
news:Rj**************@newsfe3-win.ntli.net...
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


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.com. That's
a very handy source of links to info.

-Howard


Jul 22 '05 #3
"danny" <da***********************@virgin.net> wrote in message
news:Rj**************@newsfe3-win.ntli.net...
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.


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
Jul 22 '05 #4
On Tue, 31 Aug 2004 19:44:05 +0000, Mike Wahler wrote:
it's perfectly valid for a call to 'fopen()' to cause a drawer of the
filing cabinet in my office to slide open.


Can I quote you on that?

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

Jul 22 '05 #5

"Till Crueger" <Ti****@gmx.net> wrote in message
news:ch**********@f1node01.rhrz.uni-bonn.de...
On Tue, 31 Aug 2004 19:44:05 +0000, Mike Wahler wrote:
it's perfectly valid for a call to 'fopen()' to cause a drawer of the
filing cabinet in my office to slide open.


Can I quote you on that?


Yes.

-Mike
Jul 22 '05 #6
danny wrote:
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

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.
Jul 22 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
44
by: Xah Lee | last post by:
here's a large exercise that uses what we built before. suppose you have tens of thousands of files in various directories. Some of these files are identical, but you don't know which ones are...
0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
18
by: JKop | last post by:
Here's what I know so far: You have a C++ project. You have source files in it. When you go to compile it, first thing the preprocessor sticks the header files into each source file. So now...
3
by: pooja | last post by:
Suppose i have created a class c1 with f1()in c1.cpp and included this c1.cpp in file1.cpp file , which is also having main() by giving the statement #include "c1.cpp". the same i can do by...
11
by: ambika | last post by:
Iam just trying to know "c". And I have a small doubt about these header files. The header files just contain the declaration part...Where is the definition for these declarations written??And how...
22
by: Daniel Billingsley | last post by:
Ok, I wanted to ask this separate from nospam's ridiculous thread in hopes it could get some honest attention. VB6 had a some simple and fast mechanisms for retrieving values from basic text...
18
by: UJ | last post by:
Folks, We provide custom content for our customers. Currently we put the files on our server and people have a program we provide that will download the files. These files are usually SWF, HTML or...
0
by: wal | last post by:
How does one attach files to emails using libgmail? The following code http://pramode.net/articles/lfy/fuse/4.txt works fine when said files are simple text files, but it failes as soon as the...
3
by: aRTx | last post by:
I have try a couple of time but does not work for me My files everytime are sortet by NAME. I want to Sort my files by Date-desc. Can anyone help me to do it? The Script <? /* ORIGJINALI
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.