Hello All,

I am trying to figure out how to write user input into a text file.

I created a text box that the user can type his/her name into. I am trying to get the information from that text box to be written to the text file using

print OFILE " ..........\n";

If the text box is named GuestName, how can I pass this into the print OFILE to be written to the text file?

Thank you,

Recommended Answers

All 3 Replies

Lets see your current code.

"I created a text box ..."'

you created a GUI and you're trying to get the input to a file handle?

Guess he figured it out.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.