Thread: Using a file format to save information that the user can't readily access?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    4,632
    But is there a non os-specific method?
    Possibly in the std::filesystem class.

    Why aren't there such cool functions in other os other than windows?
    There are, you just haven't stumbled across them yet. Do you realize that on Unix/Linux you can "hide" a file by simply starting the name with a dot(.)?

    By the way on Windows to "hide" a file I believe you need to be using something other than the "FAT" based filesystem since "FAT" doesn't support most(any?) file attributes, also it appears that you need at least Windows XP for that function.

  2. #2
    Registered User
    Join Date
    Sep 2018
    Posts
    217
    Quote Originally Posted by jimblumberg View Post
    Possibly in the std::filesystem class.


    There are, you just haven't stumbled across them yet. Do you realize that on Unix/Linux you can "hide" a file by simply starting the name with a dot(.)?

    By the way on Windows to "hide" a file I believe you need to be using something other than the "FAT" based filesystem since "FAT" doesn't support most(any?) file attributes, also it appears that you need at least Windows XP for that function.
    Oh lord jim how the hell do you know so much stuff! But there's isn't something like the <windows.h> for other os right?

  3. #3
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by Nwb View Post
    Oh lord jim how the hell do you know so much stuff! But there's isn't something like the <windows.h> for other os right?
    I can't quite tell whether you're expecting there to be a corresponding header, but of course there is. There's <unistd.h> for a start, which is standard POSIX (unix-like things), as well as a bunch of system-specific things that you would find in sys/ as well. If you have access to a *nix machine, you can do
    Code:
    ls /usr/include
    to see all the headers you have at your disposal. (You should see all the standard headers, of course, plus the system-specific ones here, plus some directories that have more.)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 09-09-2012, 05:45 AM
  2. save output file to excel format
    By imjustnew in forum C++ Programming
    Replies: 18
    Last Post: 12-31-2011, 11:09 AM
  3. Replies: 12
    Last Post: 04-01-2008, 08:58 AM
  4. [c++] cannot access the ClassView information file
    By vistavision in forum Windows Programming
    Replies: 4
    Last Post: 01-14-2003, 02:31 PM
  5. Replies: 6
    Last Post: 07-10-2002, 07:45 PM

Tags for this Thread