Hi. Two quick queries:

1) Can a file be opened for ascii input and output at the same time? If so, would this be two separate instances or one instance with a different flag?

2) Can a specific line or element of a file be removed in situ?

The end result I am seeking is to go through a file containing a bunch of numbers, find the first instance of a specific number, and remove it, without having to see the rest of the numbers. Currently my model is to open it for input, selectivly copy all the elements to a vector, then open it for output and load the contents of the array back. Problem is, this involves having to pull the entire length of the file, even after I know where what I am looking for is. Is there any way to just go to it, clear it in situ, and then be done?