Computing.Net > Forums > Programming > Help in C language

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Help in C language

Reply to Message Icon

Name: ESTEBES
Date: December 6, 2008 at 07:15:15 Pacific
OS: Windows Xp
CPU/Ram: 2.0GHZ25RAM
Product: Compaq / UKNOWN
Comment:

Hi everyone i need some help.
I'm doing a program in Visual Studio with C language.
And in this program i need do creat files with the name that user wants.

Example:
printf("What name you want for the file?"); scanf("%s",&name_file);

(user answer for example: EDA)

FILE *f;
f=fopen("R:\\name_file","w");

I want to creat a file with the name that name_file contains, wich is EDA.

Can you help me?
Thanks for everything



Sponsored Link
Ads by Google

Response Number 1
Name: dtech10
Date: December 7, 2008 at 14:14:11 Pacific
Reply:

Hi

It's a long time since I did any C but if
I remember right try this.

f=fopen("R:\\*name_file","w");


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Help in C language

Hierarchal Tree in C Language. www.computing.net/answers/programming/hierarchal-tree-in-c-language/11292.html

help with C++ language www.computing.net/answers/programming/help-with-c-language/17856.html

Help in C Prog www.computing.net/answers/programming/help-in-c-prog/891.html