Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 10:23

  • Please register to post and access all features, it's quick, easy and FREE!


Creating/saving text files

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2013
Posts: 1,187
Received Thanks: 38
Creating/saving text files

How can I create txt file in a desired of me directory using C++?



Dwarfche is offline  
Old 11/28/2015, 14:30   #2
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,049
Received Thanks: 491
You could use a


warfley is offline  
Old 11/28/2015, 14:46   #3
 
elite*gold: 0
Join Date: May 2013
Posts: 1,187
Received Thanks: 38
well, i got this code:

but im curious where this text.txt file is saved
Dwarfche is offline  
Old 11/28/2015, 15:20   #4
 
elite*gold: 1226
Join Date: Apr 2010
Posts: 1,029
Received Thanks: 604
It is saved in the current working direction where the program is executed (the directory of the program in many / most cases). But you can also pass an absolute path like that:
Code:
file_.open("C:\\text.txt");
In that case the file is always located as C:\test.txt regardless of where the program is executed.
With best regards
Jeoni


Jeoni is offline  
Old 11/28/2015, 15:28   #5
 
elite*gold: 0
Join Date: May 2013
Posts: 1,187
Received Thanks: 38
even like that, no text.txt file i can find in my C: disk


Dwarfche is offline  
Reply



« Ein Exploit in C schreiben | Wie kann ich meine Richtextbox verbessern ? »

Similar Threads
Saving .tga files for client side
So here it is with another question... I was editing the client interface, created a custom login screen, and then saved it as .tga file. ...
0 Replies - Flyff PServer - Discussions / Questions
Creating c3 files, help!
Hello, I've found a topic in the templates guide section that I can create c3 files using the 3D Max 7 by adding the C3_Core.dll to the program...
3 Replies - CO2 PServer - Discussions / Questions
[Help] Ini files and Saving
Ok this is a question i just wanna know about. I have Added Luckytime Exppot Adding Whpw now. How do i make it where it will add that into the Chars...
6 Replies - CO2 PServer - Discussions / Questions
[Tutorial]Creating a notepad app[Lot of Text]
Create a Notepad App In this tutorial I will show you how you can create your own Notepad like Application. Start by creating a new Windows Forms...
15 Replies - CO2 Programming



All times are GMT +2. The time now is 10:23.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.