There are things you can't really do with just logic bricks - AI, for example.
A basic profile would be something like this. Say you've got a txt document that looks like:
Name KnightsFan
Level 1
Weapons TheAwesomeSwordofDoom UselessPocketKnife
And you want to assign his unlocked weapons to "TheAwesomeSwordofDoom" and "UselssPocketKnife." You could do this:
try:
file = open('path/file.txt') # The file path has to be relative to game
for line in file: # Loop through the lines in the weapon's profile
if "Weapons" in line: # Check if the word "Weapons" is in that line
list = line.split() # Turn this line into a list -> ['Weapons', 'TheAwesomeSwordofDoom', 'UselssPocketKnife']
unlockedWeapons = list # You will use this variable in the game
unlockedWeapons.pop(0) # If you want, use this to remove the zero'th element of the list (which, in this case, is 'Weapons')
except:
print('Error reading the profile') # If it can't open the file, this will be printed
else:
file.close()