Data will not show

Hi i need help you see i want to make a VARY basic xp leveling up system so i start’t off with SetPData(“level”,1) but then i used the ply:ChatPrint("your level is "…GetPData(“level”)) it sayed your level is nil or your level is 0 so i got bord of trying to work it out so i make it with .txt files but then i tryed print(file.Read(“level.txt”)) and it sayed 0 but then i look in the data/level.txt it sayed 1 ?? so can some on help find out why it is not tell me the right value thank you