import os;
name=""
with open("./data/config.txt", "r+") as q:
	old = q.read() # read everything in the file
	name = ([line for line in old.split('\n') if "USER_NAME" in line][0])[11:]
print name

path = "./data/user/"+name+".txt"
with open(path, "r+") as f:
	old = f.read()# read everything in the file
	f.seek(0)# rewind
	new = ""
	for line in old.split('\n'):
		if not ('NETWORK_LAST_STYLE' in line): #print out all lines but the style line.
			new+=line+"\n"
	f.write(new) # write the new file