def METHOD_NAME(pdbFile, filename):
	pdb = pdbparse.parse(pdbFile) #call the parse function in __init__ of the pdbparse library
	structs = [ s for s in pdb.streams[2].types.values() if (s.leaf_type == "LF_STRUCTURE" or s.leaf_type == "LF_UNION") and not s.prop.fwdref ]
	FILE=open(filename, "w"); #open filename in write mode
	FILE.write(pdbFile[:-4] +' (pdb file)' + "\n") # put the OS version at the top of the file!
	for s in structs:
		FILE.write(s.name + "," + s.name + "," + ("%#x" % s.size) + "," + "struct\n")
		for f in s.fieldlist.substructs:
			tpname =get_tpname(f.index)
			FILE.write(s.name + "," + f.name + "," + str(hex(f.offset)) + "," + "%s" % (tpname) + "\n")
	FILE.close()