|
by: Nicolas Fleury |
last post by:
Hi,
How can I know if a system command doesn't exist? All the ways I have
tried behave like if the system command was existing but returning one.
I don't want to sound provocative, but open in Perl returns an error
in a command doesn't exist, so I'm sure we could have an exception in
the same case for popen in Python?
Thx and Regards,
Nicolas
|
by: AJ |
last post by:
Hello, I was wondering if it is possible to create a file if it doean't
exist. I am using fstream and writing in and out a binary file. I check to
see if the file is opened. if it doesn't get opened, i want to create the
file. I was wondering if this can be done. This is the code i have for
opening the file:
fstream rfile("names.db", ios::binary| ios::in | ios::out);
if ( !rfile ) {
cerr << "Could not open file 'names.db'\n";
}
|
by: Rush |
last post by:
If i create a new StreamReader object, based on a filename that does
not exist, the SR correctly raises an exception that the file doesn't
exist. Great! I love it.
BUT....then SR proceeds to create a zero length file using the
incorrect filename parameter!!
WTF??? Is this supposed to be a feature??? Creating a file as a
result of an exception? Isn't there a flag for this?
|
by: Mike |
last post by:
Hi
I've written my first asp.net page below. It queries an Access database with
one table consisting of two columns - a username and a server name. The
users enter their login name and the page queries the database and then
directs them to the correct server. This works fine as long as their name
actually exists in the database. If it doesn't the the page fails at the
server = dataSet.Tables(0).Rows(0).Item(0).ToString()
|
by: UJ |
last post by:
What do you do if the configuration file for you configuration block doesn't
exist? There doesn't seem to be an easy way to create the file. I could just
create the file but that implies I know the name of the file which I can't
figure out how to do unless I read in my app config file and parse through
the setting.
TIA - Jeff.
|
|
by: norm4h8 |
last post by:
Hi everyone!
I have a problem with trying to open a file in C.
The following line in my code is suppoed to open a specified file if it
exists and create a new one with this name if one doesn't exist:
if ((shfd = open(argv, O_CREAT | O_RDWR, 0644)) < 0)
my_error("open failed");
|
by: H5N1 |
last post by:
hi there
the topic says it all.
I have a outer join select statement in tableadapter that populates
GridView, I want to make it updatetable, so I need to provide an update
command for table adapter.
the problem is that not all rows in gridview exist in database (since
it's an outer join) so I want to UPDATE statement to insert the row if
it doesn't exist.
|
by: vdanvoye |
last post by:
Some tables in my database cannot be opened anymore (in design or view mode). Those tables do exist though: they are listed when I run the query 'show tables' but when I try to open them, I get "1146 table XXX doesn't exist". Did this happen to anyone else? If so, is there a way to recover those tables?
Mysql v5.0.27
Server: Apache/2.2.3 running on Sun
Thanks for any tips!
Vincent
|
by: Perl Beginner |
last post by:
Hello all,
I am new at VB6, but the more i learn, the more i love it! But i do have a question. I've created a form, the user has to choose an excel file from a list that they want to open, when they highlight the file name, the directory path shows up in another label box; then the user clicks the Open button to actually open the excel file for viewing. But what if the file doesn't exist yet? How do i add to my IF/Then statement a...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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: 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.
|
|
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...
|