
opening a file using open method
Quote:
>do you guys know how to open a file using int open command, instead of
>fopen?
There is no such thing as an "int open command" in the C language.
Therefore, you're off topic in this newsgroup.
Quote:
>here is what i am trying to do:
>I am trying to open a file which name is provided when running from command
>line.
>e.g
>OpenFile temp.txt
>will open the file temp.txt
>I'd like to know how to use open command, rather than using fopen.
You forgot to explain us what is wrong with fopen().
If you insist on using open(), it is much better to read the relevant
part of a book dealing with programming on your particular platform,
rather than asking in a Usenet newsgroup (even in one where the question
is topical). Usenet technical newsgroup are not meant to be used
*instead* of tutorial books.
Dan
--
Dan Pop
DESY Zeuthen, RZ group