Hi all

This may sound like a silly/simply question how do i create a file from user input e.g. i want the user to input a file name and that input creates a file with same name...

required output...

1.Input file name to process: xyz (this xyz is created)then
i want to make sure the entry is made, if blank output a message..

2. which line no. to enter the data into...

3. Enter text....prompt user to ok to continue if no quit

4.if yes enter the text into the line no. and display it ...

i would appreciate if someone can give a c program script to get me started, thanks in advance....i am new to c programming...thanks again...indy