`System.IO.File' does not contain a definition for `AppendText'?

I am very new to Unity3d and tried to open an existing project. While playing it shows the following error.

Assets/Scripts/DataAccess.cs(39,30): error CS0117: System.IO.File’ does not contain a definition forAppendAllText’

I dont have any idea about how to solve this. I have tired a lot but get stuck over here.

It would be appreciating if anyone solve this problem.

Thanks in advance…

Try changing the API Compatibility Level from .NET 2.0 Subset to 2.0 Full in Edit->Project Settings->Player under Optimizations.