The source box is bugged and your code isn't showing. Try using the code snippet tags instead. I would really look into Cattle Rustler and Exeat's plugin for easy file functions though it does require .net framework to be installed. DBP can do this but it is a bit troublesome. Everytime you want to write to a file and not overwrite stuff you have to copy all of the information into a temp file, delete the file you want to write to, open the file you want to write to (DBP will remake it), copy all the info from the temp file to the file you want to write to, delete the temp file, and then start writing your information. With CR & Exeats plugin you just use their open to append command and write your new information