Manejo de archivos
8. Métodos de Clase ofstream (escritura)
8.1. Método seekp ( escritura)
Método seekp: (Set position in output sequence )
Este método setea, pone, determina la posición de la secuencia donde el próximo carácter será insertado en el flujo de salida o output. Existe la posibilidad de pasar argumentos para hacer referencias relativas.
Sintaxis:
flujo.seekp(desplazamiento, referencia);
Parametros de seekp
Desplazamiento
pos - absolute position to set the input position indicator to
off - relative position (positive or negative) to set the input position indicator to
dir - defines base position to apply the relative offset to. It can be one of the following constants referencias.
Referencias.
Constant Explanation
beg the beginning of a stream
end the ending of a stream
cur the current position of stream position indicator
Veamos ejemplos.

Es argumento que se pasa para indicar la posición , es del tipo “long int”.