Hi all, I am trying to write a struct to a file then read it again, but it cant get it to work. It compiles file, but when I try to read it, I don’t get anything. I don’t think that I am writing the...
Type: Posts; User: Loic
Hi all, I am trying to write a struct to a file then read it again, but it cant get it to work. It compiles file, but when I try to read it, I don’t get anything. I don’t think that I am writing the...
Cheers, Thats worked :)
Cheers that looks good… ill have a read of that, but I still wouldn’t mind trying to get this other function I have to work.
Ah cheers for that. if I use that function with out the file type filtering the first two results are always “.” and “..”
How could I get past this problem?
lol... sorry, stupid mistake :)
ok so i have come up with this...
int getdir (std::string dir, std::vector<std::string> &files, std::string filetype)
{
DIR *dp;
struct dirent *dirp;
if((dp =...
im not to sure what you are asking for here... but from what i understand this should be what you are looking for...
include<iostrem.h>
main()
{
cout << "hello c++\n";
...
I think I posed the same thread when I signed up to these forums… but, what I ended up doing was passing an array to the function by reference… so something like this
void start_rubik(char...
Hi all, I have a function that returns the contents of a directory in a string vector. It works perfectly but what I want to do is filter out the results for a certain file type. I just wanted to...
Thanks laserlight, that worked perfectly :)
Hi all, I wanted to create a program that will tell me how items I can push onto a string vector before the computer runs out of memory and crashes. Now I remember at uni we touched on Exceptions....
I read over that article your posted "The Oldest Trick in the Book" cleared every thing up... i now have a much better understanding on how fuzzing, buffer overflows... and how a systems works......
The thread I read isn’t much more descriptive than my thread here... but fyi this is it exploiting the system() call in c?
Thanks everyone, you have cleared up everything. I wasn’t to concerned on how to do it. I know that is well over my head. I just wanted to know if it was possible :)
Yeah, alright… I’m a kiddo...
mmm ok, so it is possible... but i guess the how, and how to protect against it would be a little bit to in-depth/complex to discuss in this thread...
I have no idea what you are trying to do here... but it dose seem pointless...
Hi all, I came across a thread on another forum. And there was a thread about exploiting the “system()” call in C … one person pointed out that it may be vulnerable to a buffer overflow sort of...
after all that i find out that linux can do what i want to do already... :(
if anyone wanted to know....
##this will combine files 1,2,and 3 into the big file.
bt~#cat file1.txt file2.txt...
sorry to be asking so many questions on this... but i am a little confused on how i would get that to acept a file??? ie using ifstream & ofstream...
i think i understand how what you posted...
ok so i had a go to getting this to work, and in theory what i have should merge 2 sorted list and filter out the doubles.... but for some reason it isnt working and i cant find whats wrong... :(...
Thanks every one for all your help... i think i should be able to do it now...
and for those of you who are interested in how i have wordlists that are so large... i am getting to from other...
well i don't ever intend for this program to be run on windows... as all of the tools i will use the word list for run under linux... ubuntu, or backtrack...
but i think laserlight suggestion on...
I just read through that wikipedia article, and i think i get the theory of it, but i am a bit unsure how i would go about implementing it... and wouldn't the data at some point be stored in the...
if its not going to store gb's of info, then the program most likely will not work in a real world situation... is there a way to write the data to the hard drive???
correct me if i am wrong, but...
Hi all, i am trying to write a program to help me manage word lists, basically just merge 2 word lists together, and filter out the double words...
but one problem i can see coming is that some...