c++ - Catch all type of assertion -


i need condition like:

try { //bug condition } catch() { //remove file } 

that create 1 confidential file data cannot viewed third party, when bug occurred in code file deleted because don't known exactly, bugs occurred.

so want catch bug using try , catch , want delete file. how can catch exception in c++??

that delete file if there bug.

like:

try {     char temparray[10];     char c = temparray[11]; } catch {     cout<<"array out of boundry";     deletefile("confi.txt"); } 

a word security: if create file, on hard disk, confidential information, can shut down computer while process running , file still open, take out hard drive , read contents.

if file on server can same thing pausing process before deletes file.

even if removed file filesystem, can still read, since removing file not wipe contents.

i'd recommend not deal confidential information until have needed expertise - not learning so. if have it, think watchdog process suggested here + encryption way go.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -