choosing files
From: Samba (hahenricus_at_hotmail.com)
Date: 11/27/03
- Next message: Christophe Vanfleteren: "Re: choosing files"
- Previous message: FISH: "Re: thread"
- Next in thread: Christophe Vanfleteren: "Re: choosing files"
- Reply: Christophe Vanfleteren: "Re: choosing files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 27 Nov 2003 17:00:55 +0100
Hi all,
I have made a program that uses a .txt file. This file stands in a
directory. Lets say that the directory name is world
this works correctly
Now i want to improve my program so that it chooses a random .txt file from
the directory world.
For example: the directory world contains three files world1.txt, world2.txt
and world3.txt. Is it possible to scan the directory
world for all .txt files. I want a function that reads the directory world
and returns the three files (world1.txt, world2.txt and world3.txt) in a
vector or array (or somthing else).
Thanks in advance
Sander
- Next message: Christophe Vanfleteren: "Re: choosing files"
- Previous message: FISH: "Re: thread"
- Next in thread: Christophe Vanfleteren: "Re: choosing files"
- Reply: Christophe Vanfleteren: "Re: choosing files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]