hi
I want to know how can I create a simple doc file to drive D in
Harddisk by using c++ code
please answer me Quickly
bye bye 6 1530
mohamed azaz wrote:
I want to know how can I create a simple doc file to drive D in
Harddisk by using c++ code
This is system-specific. Many systems simply don't have "drive"
or "drive D" or "Harddisk". On the systems that do, you would
open a file stream for write and give it a name [of a file] that
doesn't exist, and that might cause the system to create a file
for you (which may happen only when you close that stream).
std::ofstream file("D:\\simpl e_doc_file");
file << "blah";
file.close();
please answer me Quickly
You could only talk in this manner when you're in the position
of power. Even then I wouldn't recommend it.
bye bye
I hope you mean it.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
"mohamed azaz" <mo*****@yahoo. comwrote in message
news:44******** *************** ***********@v17 g2000hsa.google groups.com...
hi
I want to know how can I create a simple doc file to drive D in
Harddisk by using c++ code
#include <fstream>
int main()
{
std::ofstream ofs("D:file.doc ");
return 0;
}
-Mike
Mike Wahler schrieb:
"mohamed azaz" <mo*****@yahoo. comwrote in message
news:44******** *************** ***********@v17 g2000hsa.google groups.com...
>hi
I want to know how can I create a simple doc file to drive D in Harddisk by using c++ code
#include <fstream>
int main()
{
std::ofstream ofs("D:file.doc ");
return 0;
}
-Mike
Use D:\\file.txt, so its more secure that it is really opened
Kind regards, Hans
Hans Mull wrote:
Mike Wahler schrieb:
>"mohamed azaz" <mo*****@yahoo. comwrote in message news:44******* *************** ************@v1 7g2000hsa.googl egroups.com...
>>hi
I want to know how can I create a simple doc file to drive D in Harddisk by using c++ code
#include <fstream>
int main() { std::ofstream ofs("D:file.doc "); return 0; }
Use D:\\file.txt, so its more secure that it is really opened
Also, D:/file.txt will also work, yes, even in windows.
--
Jim Langston ta*******@rocke tmail.com
"Jim Langston" <ta*******@rock etmail.comwrote in message
news:L0******** *****@newsfe07. lga...
Hans Mull wrote:
>Mike Wahler schrieb:
>>"mohamed azaz" <mo*****@yahoo. comwrote in message news:44****** *************** *************@v 17g2000hsa.goog legroups.com... hi
I want to know how can I create a simple doc file to drive D in Harddisk by using c++ code
#include <fstream>
int main() { std::ofstream ofs("D:file.doc "); return 0; }
>Use D:\\file.txt, so its more secure that it is really opened
Also, D:/file.txt will also work, yes, even in windows.
--
Jim Langston ta*******@rocke tmail.com
"Jim Langston" <ta*******@rock etmail.comwrote in message
news:L0******** *****@newsfe07. lga...
Hans Mull wrote:
>Mike Wahler schrieb:
>>"mohamed azaz" <mo*****@yahoo. comwrote in message news:44****** *************** *************@v 17g2000hsa.goog legroups.com... hi
I want to know how can I create a simple doc file to drive D in Harddisk by using c++ code
#include <fstream>
int main() { std::ofstream ofs("D:file.doc "); return 0; }
>Use D:\\file.txt, so its more secure that it is really opened
Why would specifying a root directory make the open more
likely to succeed?
>
Also, D:/file.txt will also work, yes, even in windows.
OP never said *where* on drive D.
-Mike This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: wj |
last post by:
Hi all,
I've got some problems uploading files using apache and php on a local
Windows PC. I'm using the file upload example from the manual, but i
can't get it to work. I don't get an error message, it's asif nothing
happens. I can't find the file that should be uploaded on my harddisk.
Has anyone a working example for file-uploads on a local server with
the settings for the php.ini file? Any tips?
|
by: Patrick Useldinger |
last post by:
Hi,
I think I found a bug in the write method of file objects. It seems as
if before writing each block, a check was done in order to verifiy
that there is enough space left for the *whole* file, not for the
*remaining* data to be written.
It happens both under 2.3 and 2.2.3.
Any ideas?
|
by: David Webb |
last post by:
The problem started when the Working Folder for a project was somehow set to
the folder of another project. I set the correct working folder in VSS and
deleted the .vbproj files that had been created in the wrong folder on the
hard drive. Before I discovered these files, .NET kept trying to create a
new project with _1 following the project name. Deleting those files
corrected that problem.
I deleted the Virtual Directory, rebooted, and...
|
by: purespam |
last post by:
How can I dynamically add file links to a html document?
I need to be able to click an image icon and the "Open file" box should
pop up where I can select a document from my harddisk. The document
should then be added to the html file at a specific spot and the file
reloaded with the new document added to the html file showing. This new
document should be stored in its new form.
Is this possible? Or is it too hard to find the spot in...
|
by: dog |
last post by:
I've seen plenty of articles on this topic but none of them have been
able to solve my problem.
I am working with an Access 97 database on an NT4.0 machine, which has
many Access reports.
I want my users to be able to select a report, click on a command
button on a form, which will then automatically create the report as a
pdf file and save it to the user's machine.
I am using Adobe Acrobat (5.0 I think) and have Adobe Distiller as a
| |
by: Mohammad-Reza |
last post by:
Hi
I want to extract icon of an exe file and want to know how.
I look at the MSDN and find out that I can use ExtractIconEx() Windows API
but in there are some changes to that api in c# I made those changes like
this :
public static extern uint ExtractIconEx(
string szFile,
|
by: Peter |
last post by:
Hello!
Please, could you tell me, is it possible to create and stream for example a
text file to the browser so that the file is not stored anywhere on a hard
drive?
User click's a link, eg. http://my.domain.com/apps/app/page.aspx?docID=235
and then the text file opens with a text "235" and when the user closes the
file there is not track of the file anywhere on a hard drive.
|
by: Niyazi |
last post by:
Hi,
I created application that store the data in SQL SERVER that reside on
network. The client also use this application to access the resources
provided with application. But is the client want to register new customer or
companies they will enter the information in Windows Form and the program
automaticaly creates the WORD document under specific folder under
application path. Once the empty word file created than ask user if they want...
|
by: TrevRex |
last post by:
Hello,
I work for a non-profit in San Diego as a GIS Specialist. I have had to teach myself about some scripting to create some dynamic maps, but I am still very limited in my skills, so I have had to explore the internet in order to discover various tutorials and examples that have led me on a positive path.
Right now I am working on a Google Mash-Up that will incorporate over 14,000 records, which will appear as separate markers that...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |