Create file and set size
-
Hi All I want to create a .txt file and set it size like 10mb.Can any one give me artical.Plz help me
You can use of CStdioFile Class or CFile class for make file but I dont think its possible to set size. its possible with Naveen's answer. ;)
modified on Wednesday, October 15, 2008 1:56 AM
-
You can use of CStdioFile Class or CFile class for make file but I dont think its possible to set size. its possible with Naveen's answer. ;)
modified on Wednesday, October 15, 2008 1:56 AM
Hamid. wrote:
I dont think its possible to set size
it is possible with CFile::SetLength[^] function.
-
Hamid. wrote:
I dont think its possible to set size
it is possible with CFile::SetLength[^] function.
I forgot it. :-D
-
Hi All I want to create a .txt file and set it size like 10mb.Can any one give me artical.Plz help me
Can you tell us what are you trying to achieve? What purpose does it server to manually set the size of a file? -Saurabh
-
Hamid. wrote:
I dont think its possible to set size
it is possible with CFile::SetLength[^] function.
-
Hi All I want to create a .txt file and set it size like 10mb.Can any one give me artical.Plz help me
See here. Use of an edit control is optional. You may also want to look at
SetFilePointer()
followed bySetEndOfFile()
."Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch