|
by: Nico Grubert |
last post by:
Hi there,
I would like to open an existing file that contains some lines of text
in order to append a new line at the end of the content.
My first try was:
>>> f = open('/tmp/myfile', 'w') #create new file for writing
>>> f.writelines('123') #write first line
>>> f.close()
|
by: wayne |
last post by:
Dear all,
may i know how can i delete the contents of an existing file using
vc++?? also, i would like to know how can i delete the whole file?
thanks alot
wayne
|
by: Amil |
last post by:
I have a reusable web application (e.g. portal). I often do a project copy
to create new virtual apps. This works fine.
Now I want to take that reusable app (not the solution and it's projects)
and just add a few new user controls to it. I do not want to copy the
entire reusable application (solution, projects, etc) and add my new user
controls.
What is the best practice for taking an existing web application directory
structure,...
|
by: LB |
last post by:
I have one form that has two buttons. I want the first button to exit the
form, and the second button to open a specific file on my C: drive.
I can get the form to close (Woo!), but can anybody tell me the code needed
to open an existing file on my computer. I've spent all morning looking on
the net but have had no luck.
The file, if it makes any difference, is a .pps
Thanks in advance people.
|
by: nasirmajor |
last post by:
Dear all i have the following code for writing to the existing file.
===========================
void AppendToFileEng()
{
SqlDataReader gr = null;
string engpath2="";
gr = db.GetReader("Select * from tbl_SubCat2 Where
SId2=" + SId2 + "");
|
|
by: shalakasan |
last post by:
Hi,
I want to open a binary file and write to a specific location in File.
Here is how my code looks like:
int main()
{
long lbuf = 0;
int lreadBytes = 0;
|
by: mamin |
last post by:
Hi,
I need to output result of my query to txt file. So I'm using -o
parameter, for example:
osql.exe -s (local) -d database1 -U sa -P sa -i 'c:\\queryFile.sql' -o
'c:\\output.txt'
But it clears existing output.txt file first and then outputs the
result, while I need to append the result of my query without clearing
existing file content. Is it possible ?
|
by: =?Utf-8?B?d2lubGlu?= |
last post by:
Hello
Using VS 2005 VB.net when a class library gets created you can right click
the project and add a Windows Application and then set it as the "startup
project" then in the Windows application you can add a reference to that
class library in the project by right clicking the Windows Application and
selecting "Add Reference" and you will see the project under the "Projects"
tab and add the project containing its class library to the...
|
by: shakthi |
last post by:
Hi
I created an online Mobile application using .net 2.0 on server side
and another offline application on mobile client using .net compact
framework 2.0. I packaged my offline application to CAB file and
installed inside Pocket PC. The CAB file created an exe file of my
offline application in the Pocket PC. My offline application downloads
a zip file from the server and unzips into a particular folder inside
the Pocket PC device and this...
|
by: sueb |
last post by:
In my Access database, I have a button on a form that copies a set of existing Word documents to a location (associated with the record on that form).
However, I don't want an existing file to be overwritten (as it currently happens), but rather I want to make a copy (filename + "(2)" or "(3)", etc., as appropriate).
Here's the code as it stands:
Function Public_Copy_Files(strChartNum As String, strAccount As String)
On Error GoTo...
|
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|