Click here to Skip to main content
16,005,181 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Again me ! [modified] Pin
Bravoone_200616-Oct-06 19:21
Bravoone_200616-Oct-06 19:21 
AnswerRe: Again me ! Pin
David Crow17-Oct-06 5:22
David Crow17-Oct-06 5:22 
AnswerRe: Again me ! Pin
Bravoone_200617-Oct-06 20:55
Bravoone_200617-Oct-06 20:55 
QuestionRe: Again me ! Pin
David Crow18-Oct-06 2:50
David Crow18-Oct-06 2:50 
QuestionDeleting a text file after repalcing all char in a random number Pin
kamalesh8216-Oct-06 2:25
kamalesh8216-Oct-06 2:25 
QuestionRe: Deleting a text file after repalcing all char in a random number Pin
David Crow16-Oct-06 2:47
David Crow16-Oct-06 2:47 
AnswerRe: Deleting a text file after repalcing all char in a random number Pin
Steve S16-Oct-06 2:53
Steve S16-Oct-06 2:53 
AnswerRe: Deleting a text file after repalcing all char in a random number Pin
_AnsHUMAN_ 16-Oct-06 2:52
_AnsHUMAN_ 16-Oct-06 2:52 
kamalesh82 wrote:
I need to open a file using Win 32(MFC API

Is opening the file in WIN32 a problem to you. You can use simple FILE * to read/write to the file.
kamalesh82 wrote:
read each line from it

Use fgets, fgetc etc as per your preference.
kamalesh82 wrote:
after reading all the line i've to replace each char in the file with a random number

Why so? You can read a line and change the character values simultaneously.For this you can create a temporary file in your applications directory and keep on writing that random data in the temp file. When you are done with the reading of the file you can first delete the original file and then rename the temp file.
kamalesh82 wrote:
after that i've to delete that file....

BOOL DeleteFile(
LPCTSTR lpFileName
);


Somethings seem HARD to do, until we know how to do them.
Wink | ;-) _AnShUmAn_

AnswerRe: Deleting a text file after repalcing all char in a random number Pin
Zac Howland16-Oct-06 3:31
Zac Howland16-Oct-06 3:31 
AnswerRe: Deleting a text file after repalcing all char in a random number Pin
Mark Salsbery16-Oct-06 6:59
Mark Salsbery16-Oct-06 6:59 
GeneralRe: Deleting a text file after repalcing all char in a random number Pin
kamalesh8216-Oct-06 7:26
kamalesh8216-Oct-06 7:26 
GeneralRe: Deleting a text file after repalcing all char in a random number Pin
Mark Salsbery16-Oct-06 7:44
Mark Salsbery16-Oct-06 7:44 
GeneralRe: Deleting a text file after repalcing all char in a random number Pin
Mark Salsbery16-Oct-06 7:58
Mark Salsbery16-Oct-06 7:58 
QuestionExitWindowsEx() Question Pin
Programm3r16-Oct-06 2:23
Programm3r16-Oct-06 2:23 
AnswerRe: ExitWindowsEx() Question Pin
prasad_som16-Oct-06 2:34
prasad_som16-Oct-06 2:34 
GeneralRe: ExitWindowsEx() Question Pin
Programm3r16-Oct-06 2:44
Programm3r16-Oct-06 2:44 
Questionrunning an exe created with visual c++ Pin
jgds16-Oct-06 2:02
jgds16-Oct-06 2:02 
AnswerRe: running an exe created with visual c++ Pin
Trollslayer16-Oct-06 9:21
mentorTrollslayer16-Oct-06 9:21 
Questioncopy image to clipboard Pin
priyank_ldce16-Oct-06 1:58
priyank_ldce16-Oct-06 1:58 
AnswerRe: copy image to clipboard Pin
Owner drawn16-Oct-06 2:08
Owner drawn16-Oct-06 2:08 
AnswerRe: copy image to clipboard Pin
Hamid_RT17-Oct-06 6:41
Hamid_RT17-Oct-06 6:41 
QuestionMemory Monitoring Pin
Programm3r16-Oct-06 1:57
Programm3r16-Oct-06 1:57 
AnswerRe: Memory Monitoring Pin
Programm3r16-Oct-06 2:05
Programm3r16-Oct-06 2:05 
Questiontool tip problem in custom activex control Pin
praveensethiya16-Oct-06 1:14
praveensethiya16-Oct-06 1:14 
AnswerRe: set focus in edit box Pin
Parthi_Appu16-Oct-06 0:09
Parthi_Appu16-Oct-06 0:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.