for localfile
for localfile
pcs write and flush