file question

Blitz3D Forums/Blitz3D Beginners Area/file question

I want to save the settings for each person in my game in a file named whatever name they input.
Can I do this.
name$=input$("give me ur name please")

writefile("players\"+name$+".dat")

and if not...how would u do it?

Thanks,
mudcat