accepting input then send to file

basically im trying to promt the user to create a name for a file then send the file name to a file with the list of the file names he has created. Also i want to code if the user doesnt enter any text to just print "Default Folder"

so far my code looks like:

if [ read - p "create" $1]
then
echo "create `$1` > foldname
else
read -p "create ``"
echo "Default Folder" > foldname

i know this is probably completely wrong but i am new and i tried!

in this code i am trying to say if the user inputs name then print create name and send that name to the foldname database (just name of file and not create and file) and if he just hits enter key (not type anything) then echo create default folder and ouput default folder to foldname database

if anyone could help it would be appreciated!!!

---------- Post updated at 10:18 PM ---------- Previous update was at 08:13 PM ----------

can anbody be of help

You agreed not to bump posts when you registered here.

FILENAME=""
read FILENAME
[ -z "$FILENAME" ] || FILENAME="Default Folder"
echo "$FILENAME" >> listfile