lcs to file