title: how to set file attributes(1644) to a particular file using c++ on linux
body: <p>I want to create a file using c++ in linux with particular file permissions(1644).I know i can achieve this with chmod but I want to do it programatically via c++.</p>
  
  <p>Is this possible?Kindly help.</p>
  
  <p>Thanks.</p>