Greetings all,
How can I get the filenames in the current directory?
I am working under linux, g++ compiler. TIA.
Deephay 4 2744
Deephay wrote: Greetings all,
How can I get the filenames in the current directory? I am working under linux, g++ compiler. TIA.
[Off Topic]
Std C++ doesnot give a way to do this since concept of directories and
files is platform-specific aspect. Try comp.os.linux
[As An Aside]
Lookup readdir, opendir, seekdir (man pages)
thx!
"Neelesh Bodas" <ne***********@ gmail.com> worte
:11************ **********@u72g 2000cwu.googleg roups.com... Deephay wrote: Greetings all,
How can I get the filenames in the current directory? I am working under linux, g++ compiler. TIA.
[Off Topic] Std C++ doesnot give a way to do this since concept of directories and files is platform-specific aspect. Try comp.os.linux
[As An Aside] Lookup readdir, opendir, seekdir (man pages)
thx!
"Neelesh Bodas" <ne***********@ gmail.com>
wrote:11******* *************** @u72g2000cwu.go oglegroups.com. .. Deephay wrote: Greetings all,
How can I get the filenames in the current directory? I am working under linux, g++ compiler. TIA.
[Off Topic] Std C++ doesnot give a way to do this since concept of directories and files is platform-specific aspect. Try comp.os.linux
[As An Aside] Lookup readdir, opendir, seekdir (man pages) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Joe Gazda |
last post by:
I'm a relative newbie to PHP, but have been able to put together some PHP
code to generate a CSV/XLS file from a Query result. Now, I would like to
include custom column names instead of the MySQL column table names. I know
that there are codes to generate tabs and carriage returns, but can't find
anything about including "commas" in a string to output to the file to
separate the custom field names. I'd appreciate some help with a line of...
|
by: Kevin T. Ryan |
last post by:
Hi All -
I'm not sure, but I'm wondering if this is a bug, or maybe (more
likely) I'm misunderstanding something...see below:
>>> f = open('testfile', 'w')
>>> f.write('kevin\n')
>>> f.write('dan\n')
>>> f.write('pat\n')
>>> f.close()
|
by: Chris |
last post by:
Hi,
In C# I tried to save a file from a generated file name.
Just before launching the dialog I check for a valid file
name to be sure.
There for I used the method ValidateNames from the save
dialog.
The strange thing is that sometimes the save dialogue
|
by: Petr Jakes |
last post by:
I have got names of functions stored in the file. For the simplicity
expect one row only with two function names: printFoo, printFOO
In my code I would like to define functions and then to read function
names from the file, so the functions can be executed in the order the
function names are stored in a file.
While trying to read the names from the file I am getting always
"strings" and I am not able to execute them.
I would like to...
|
by: laredotornado |
last post by:
Hi,
I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed
using Apache's apxs and the php library was installed to
/usr/local/php. However, when I set my "error_reporting" setting to be
"E_ALL", notices are still not getting reported. The perms on my file
are 664, with owner root and group root. The php.ini file is located
at /usr/local/lib/php/php.ini. Any ideas why the setting does not seem
to be having an effect? ...
| |
by: gonzo |
last post by:
So I have a project where I'm supposed to have a .txt input file of no more than ten first names, last names and birth years, and than in a menu I'm to give the user some options as to how the strings can be sorted. My problem is kind of hard to understand, so please bear with me. I've figured out how to sort the last names, first names and birth years individually, but how do I make it so that all 3 things match up correctly so that the first...
|
by: OziRus |
last post by:
Hi,
I've char* array that I defined like char *str. I want to read
from a file, that contains names in each row, and assign them to my str
char * array.
m is a char array, f is a file pointer and counter is my variable that
contains number of names in my file;
When I write;
|
by: Jay |
last post by:
What's the recommended way to change file/folder names within a project?
I want to change the solution name from (say) sol1.sln to sol2.sln, and also everything else named
sol1.* (eg sol1.suo, the folder sol1, and within this folder, sol1.csproj, and also, files within
Debug and Release folders)
Also, how do I change other names (eg .cs files)?
I'm using VS C# 2005 Express.
|
by: Steven D'Aprano |
last post by:
After reading an earlier thread about opening and closing lots of files,
I thought I'd do a little experiment.
Suppose you have a whole lot of files, and you need to open each one,
append a string, then close them. There's two obvious ways to do it:
group your code by file, or group your code by procedure.
# Method one: grouped by file.
for each file:
open the file, append the string, then close it
|
by: mujunshan |
last post by:
Yesterday, I installed PythonCE on my cellphone whose OS is Windows
Mobile 5.I wanted to use numpy as calculation tool.But after I copy
numpy module in my desktop computer into my phone,I find many file
names in directory \numpy were changed into capital letters.For
example:
__init__.py
was chaged into
__INIT__.PY
However PythonCE is sensitive to capital directory or filenames. So it
is boring to convert those file names to into...
|
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: 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: 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...
| |