mode argument

This is a discussion on mode argument within the C++ Programming forums, part of the General Programming Boards category; Can anyone tell me what is the purpose of a mode argument in the open function?...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    4

    Unhappy mode argument

    Can anyone tell me what is the purpose of a mode argument in the open function?

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    The mode determines how the file is opened, if you only want to add text to the end of a file then you use a different mode than you would if you wanted to open a file to read/write in binary.
    http://www.cplusplus.com/ref/iostream/fstream/

    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 03:39 PM
  2. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  3. Nested loop frustration
    By caroundw5h in forum C Programming
    Replies: 14
    Last Post: 03-15-2004, 09:45 PM
  4. Shortening main
    By pdstatha in forum C Programming
    Replies: 1
    Last Post: 04-03-2002, 04:56 PM
  5. free() usage
    By pdstatha in forum C Programming
    Replies: 5
    Last Post: 03-13-2002, 09:28 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21