Re: Setting file (.txt) attribute at run time.

From: Tim Robinson (tim.at.gaat.freeserve.co.uk_at_invalid.com)
Date: 11/06/03


Date: Thu, 6 Nov 2003 18:50:07 -0000


"Mike" <kshare_103@hotmail.com> wrote in message
news:8f3383e0.0311060041.391c883c@posting.google.com...
> My C++ program needs to set the attribute of a ".txt" file to "read
> only" before and after it writes to this file.
>
> Any suggestions would be appreciated.

SetFileAttributes

-- 
Tim Robinson (MVP, Windows SDK)
http://www.themobius.co.uk/


Relevant Pages

  • Re: using keyboard to move a dialog
    ... Tim Robinson ... "Mike Frith" wrote in message ... >> Tim Robinson (MVP, Windows SDK) ...
    (microsoft.public.win32.programmer.ui)
  • Re: . A Dif.EXE program .
    ... Tim Robinson (MVP, Windows SDK) ... "Jeff Relf" wrote in message ...
    (microsoft.public.win32.programmer.ui)
  • Re: activating menu items
    ... > Tim Robinson (MVP, Windows SDK) ... >> level menu item from the menu bar? ...
    (microsoft.public.win32.programmer.ui)
  • Re: Token lifetime
    ... Sandip wrote: ... Tim Robinson (MVP, Windows SDK) ...
    (microsoft.public.vc.language)
  • Re: [ASAP] Stack corruption
    ... the detection of the problem with PageHeap. ... "Tim Robinson" wrote in message ... > Remember to disable Page Heap once you are done. ... > Tim Robinson (MVP, Windows SDK) ...
    (microsoft.public.vc.mfc)