what i want to do is simply read all the filenames from inside a directory, i know the basic file i/o stuff but cannot find anything about reading exsisting filenames. cheers for any help u give
...
Type: Posts; User: Paul
what i want to do is simply read all the filenames from inside a directory, i know the basic file i/o stuff but cannot find anything about reading exsisting filenames. cheers for any help u give
...
hmm... the STL is overly complicated for what i want to do, plus i would rather become more expereinced with the basics of c++. How could i dynamically create a struct arry? I havn't tried much...
cheers i'll do that.
lol i didn't think it looked right, it's gettin late and i was to tired to see the mistake :p
opps forgot to mention the error i am getting:
"error C2057: expected constant expression"
Hi ive been trying to create a simple struct within another struct within another :p works create can access all the data members fine. My problem is simply, How can i have a dynamic struct array...
cheers Zen that work perfectly :)
yet another question how can i make cin.getline to terminate when the user presses enter with out haveing to make them type the ternial_char first.
cheers
thanx for the help but i cannot remove(char* filename) to work :(
here is some of my code
ofstream file;
file.open(fileName);
file<<firstName<<"\n"
<<lastName<<"\n"
Hi people,
just started programming bout a week ago and need a little help with some file i/o
what i have done so far is use fstream to open save and then close a file in which the user types the...
C , just start yesterday!
Paul
www.pauldunn.f2s.com