Record basic file logic