I need it programatically. I tried FindFirstFile/FindNextFile but recursion is a bit too slow and uses up too much resources. I thought there was a data structure for each partition that had all the partition information including number of files and folders. Kelvin Chikomo
kelprinc
Posts
-
Number of files and folders -
Number of files and foldersDoes anybody know how to get the number of files and folders on a windows machine. Kelvin Chikomo -- modified at 6:47 Sunday 12th February, 2006
-
Read tab delimited fileI managed to sort out the problem by reading the whole line into a istringstream object then tokenize the object using the getline method and '\t' as the delimiter. But for interest sake how wld you do it? Kelvin Chikomo
-
Read tab delimited fileThanks but strtok() does not work well if you have empty columns. i.e concurrent tabs
-
Read tab delimited fileI got it I read each line into an an istringstream object and i use getline(buffer,num_chars,'\t') to seperate the the string. COOL Kelvin Chikomo
-
Read tab delimited fileDO you have any suggestions
-
Read tab delimited fileYah they have spaces between them
-
Read tab delimited fileDoes anybody know how to read a tab delimited file at the same time using the '\n' as a delimiter if its encountered first. I tried using getline(buffer, num_chars, '\t') It works fine when i know the number of columns. Say i had a file like line1:Col1 Col2 Col3 line2:Col1 Col2 line3:Col1 Col2 Col3 using getline(buffer, num_chars, '\t') would return Col1 Col2 Col3 Col1 Col2 Col1 Col2 Col3 everything in one line. I tried defining a macro like #define tab_eol '\t'|'\n' then use it as getline(buffer,num_chars,tab_eol) but it does not really work Any help Please Kelvin Chikomo
-
Checking if a user is in a groupLet me try it. I want to check both local and global groups. I have spent the whole day struggling Kelvin Chikomo
-
Checking if a user is in a groupDoes anybody know how to check if a user is part of a WINNT group.
-
Wbemuuid.libThanks let me google XP SP2 Kelvin Chikomo
-
Wbemuuid.libHello does anybody have the Wbemuuid.lib library? I do not have it in my SDK. If you know a link to the source of this library, please hook it up. or if you have it please email it to me. Kelvin Chikomo
-
[Message Deleted][Message Deleted]
-
[Message Deleted][Message Deleted]
-
[Message Deleted][Message Deleted]
-
Binary to Text FileI don`t realy understand your question, but from what i understand i suggest you open your file in binary mode and write it to a nuew file with a .txt extension.
ifstream infile; infile.open("file_name.lnr", ios::bin); //get the number of characters infile.read(buffer,size); ofstream outfile; outfile.open("new_file.txt"); outfile.write(buffer,size);
The syntax might be wrong Kelvin Chikomo -
Binary to Text FileI don`t realy understand your question, but from what i understand i suggest you open your file in binary mode and write it to a nuew file with a .txt extension. ifstream infile;
infile.open("file_name.lnr", ios::bin); //get the number of characters infile.read(buffer,size); ofstream outfile; outfile.open("new_file.txt"); outfile.write(buffer,size);
The syntax might be wrong Kelvin Chikomo -
[Message Deleted][Message Deleted]
-
Share permissionsWhat do you mean? Can I get some help please. Kelvin Chikomo
-
[Message Deleted][Message Deleted]