write a generic function simillar to the "fgets" [modified]
-
I want to read a line from a file which consist number of lines.In mfc library there is no function for "fgets"( am opening this file "CFile::Open(.....) function,with sharedeny access flagcheck).If any one can give me the hint to how to write this generic functiopnality using mfc, i'll be gratefull.
kamalesh
-
I want to read a line from a file which consist number of lines.In mfc library there is no function for "fgets"( am opening this file "CFile::Open(.....) function,with sharedeny access flagcheck).If any one can give me the hint to how to write this generic functiopnality using mfc, i'll be gratefull.
kamalesh
-
I want to read a line from a file which consist number of lines.In mfc library there is no function for "fgets"( am opening this file "CFile::Open(.....) function,with sharedeny access flagcheck).If any one can give me the hint to how to write this generic functiopnality using mfc, i'll be gratefull.
kamalesh
EIther you need to think about how you word your questions, or you're typing your homework direct into the site without any thought. My money is on the latter.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
-
EIther you need to think about how you word your questions, or you're typing your homework direct into the site without any thought. My money is on the latter.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
sorry i was at hurry.... I want to read a line from a file which consist number of lines.In mfc library there is no function for "fgets"( am opening this file "CFile::Open(.....) function,with sharedeny access flagcheck).If any one can give me the hint to how to write this generic functiopnality using mfc, i'll be gratefull.
kamalesh
-
sorry i was at hurry.... I want to read a line from a file which consist number of lines.In mfc library there is no function for "fgets"( am opening this file "CFile::Open(.....) function,with sharedeny access flagcheck).If any one can give me the hint to how to write this generic functiopnality using mfc, i'll be gratefull.
kamalesh
-
I want to read a line from a file which consist number of lines.In mfc library there is no function for "fgets"( am opening this file "CFile::Open(.....) function,with sharedeny access flagcheck).If any one can give me the hint to how to write this generic functiopnality using mfc, i'll be gratefull.
kamalesh
kamalesh82 wrote:
In mfc library there is no function for "fgets"...
Did you overlook
CStdioFile::ReadString()
?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
kamalesh82 wrote:
In mfc library there is no function for "fgets"...
Did you overlook
CStdioFile::ReadString()
?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
Am using 2004 MSDN. there is no such kind of function(CStdioFile::GetString()).
kamalesh
-
Am using 2004 MSDN. there is no such kind of function(CStdioFile::GetString()).
kamalesh
My bad. :-O I meant
CString::ReadString()
.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb