我想在linux上的用户主目录中放置一种锁文件(来自c ++),但fopen'ing~/.fluudit似乎不起作用.
fopen("~/.fluudit","w"); //fails
c++ linux
c++ ×1
linux ×1