   Placing data at correct postion in file
  Like gotoxy() which is a compiler specific function to print data anywhere on the output screen. Is there any way to control output to file in C or C++. Any in built function?   
  C: fseek()C++: std::ofstream::seekp()   ;  Remember that you can't actually insert data in a file, you can only overwrite data and append to it. If you want to insert data, you'll have to read the file (Or at least the part after where you want to insert), edit it, and write it out again.Also remember that files are 1-dimensional, not 2D like the screen appears (Although it's still only 1D in memory).   ;  Ok...thanks for the help...added to the rep as always.   