   File input and output, help plz
  well i havnet really tried to work with custom files but i wanted to know what will i need to do and use to make first of all a custom file like something.vft, not only that but also to open it like using fopen or something then introduce a group of numbers like 3 2 4 51 48 41 21 and be readable in the same way, also, i read about using fwrite and fread also fin and fout but i didnt think they will work as well as i wanted to; also i wanted to know if it was posible to get froma a list of those lines to get a specific group ones like only starting from 4 or something.sorry for my poor english i hope someone can help me   
  You could try this article Clicky. Thats got simple file input and output. Hope that helps.   ;  ty for the link thats the article i was reading for the fin and fout plus other parts, but still didnt really told me much of what i wanted to know :s   ;  cNoob pointed you in the right direction for the acutal data input and output.just make an fstream, and output your numbers.ofile << 3 << 2 << 4 << 51 << 48 << 41 << 21;What did you mean "as well as you wanted them to"?If you want to manipulate the data (get only from the 4 onward) you need to do one of 3 things.1) read in all the data, into a vector or something, and do the processing in memory once you know what you are looking at.2) format your data in such a way as to know that you only have one element per line (use getline X times to skip ahead to the data you wanted)or in binary form, each record is X bytes long, so you can seek to the position you want to start reading from.3) store some table of contense that tells you how far into the file each piece of data is. So you can seek to it.Item 1 is your best bet for just manipulating simple data.;  ty for all the info i though that fin and fout couldnt do all the inputs i was thining as they are a lot of lines, as for the data processing would it be posible to divide in different variables the different numbers fromteh same like like example:0 4 40 1into A: 0 B: 4 C: 40 D: 1 ?and ty again for all yoru help   ;  Are you talking about binary files?Where, instead of having text, it mainly has integers and other things stored?Writing:FILE* f = fopen("file.bin", "wb");int array[4] = {0,1,2,3};fwrite(array, sizeof(int)*4, 1, f);fclose(f);Reading:FILE* f = fopen("file.bin", "rb");int array[4];fread(array, sizeof(int)*4, 1, f);fclose(f);Was this what you meant? Binary files and not text files?   ;  well yes i wotn have text but numbers that i will be using in other parts like vectors and such, so thats what im asking if in which posibility i can write and read the numbers in order and in a way that will be easy to use and store in other variables   ;  Everything will be read in order, unless you seek around the file.so something likevector<int> number_list;ifile.open ( "test.txt" );while ( !ifile.eof() ){int number;ifile >> number;number_list.push_back(number);}and then you have a vector of the numbers in order from the file   ;  You can also write the size of the vector to the file so you know how many elements to read.   ;  ok ty everyone for all theyr inputs this has being of great help   