add fopen
add user input for file