Total members 9950 | Gratitudes |It is currently Sat Feb 11, 2012 2:21 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 2 posts ] 
Author Question
 Question subject: File creation in C++
PostPosted: Fri Nov 07, 2008 5:16 pm 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:47 pm
Posts: 281
Has thanked: 0 time
Have thanks: 1 time

I have written a program to create a file.The file always get created
in Bin folder.How to create a file in other folders of desired
location.


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: File creation in C++
PostPosted: Fri Nov 07, 2008 5:18 pm 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:53 pm
Posts: 229
Has thanked: 0 time
Have thanks: 0 time
Just provide the full path to the directory you
want to open the file in.

fopen("C:\\Users\\bmccoy\\Music\\myfile.txt", "w"); in windows


fopen("/export/home/bmccoy/Music/myfile.txt", "w");


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 2 posts ] 
Quick reply


  


 Similar topics
 Topic title   Forum   Author   Comments 
 How to make PHP form data saved into txt file  PHP  Radu  6
 file exists in upper level folder link  HTML examples  msi_333  0
 How to merge the data into file  Java  Anonymous  1
 How to use xml file to populate listbox  C#  Anonymous  1
 File Permission  PHP  Anonymous  1

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team