I need another help,
I have this problem with my output file.
Normally, i use iterative methods to compute for things. but then, as iteration goes, the number of elements doubles. So this posts a problem with my buffer size.
How can I tell the program that if the buffer size is exceeded, it should stop its process already?
You can throw an exception or return an error code from the function. Of course the code that calls it will have to deal with the exception or return value.
But maybe there is another way to accomplish the task. Can you describe the problem a little more and/or post some code?