opening a file using open method 
Author Message
 opening a file using open method

Quote:

> do you guys know how to open a file using int open command, instead of
> fopen?
> 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.

Unfortunately, since open() isn't a standard C function you got the
wrong group. People in e.g. comp.unix.programmer will be able to
tell you all you need to know about open() (but perhaps you better
have a look at the man page (type "man 2 open") to be able to ask
somewhat more specific questions).
                                       Regards, Jens
--
      _  _____  _____

  _  | |  | |    | |
 | |_| |  | |    | |           http://www.*-*-*.com/ ~toerring
  \___/ens|_|homs|_|oerring


Sun, 06 Mar 2005 17:21:47 GMT  
 opening a file using open method
Hi guys.,
do you guys know how to open a file using int open command, instead of
fopen?
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.

thx in adv.
Jun



Sun, 06 Mar 2005 15:41:08 GMT  
 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



Sun, 06 Mar 2005 17:25:14 GMT  
 opening a file using open method

Quote:

> Hi guys.,
> do you guys know how to open a file using int open command, instead of
> fopen?

Yes. Well, at least I do.

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

That's also possible with fopen.

Quote:
> I'd like to know how to use open command, rather than using fopen.

Why? What did the documentation of your compiler/library say about it? What
was unclear?


Sun, 06 Mar 2005 20:30:25 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Problem with opening binary files using open()

2. Unable to open ODBC file dsn using OpenEx method

3. can't open file: to many files open

4. Difference between MRU File Open and Regular File Open

5. Problem opening a file for read while it is open for write

6. CDaoDatabase::Open() will not open mdb file

7. Looking for CFile method to detect when file is already open

8. How to active or open a particular file as soon as the projectwork space is open

9. Previously opened project files not opened on startup

10. File | Open and Open Workspace stops working

11. File Open Dialog - Open button Enable&Disable

12. File Open Dialog - Open button Enable&Disable

 

 
Powered by phpBB® Forum Software