Click here to Skip to main content
15,914,943 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Read a file on click event Pin
Nishad S15-Oct-07 22:44
Nishad S15-Oct-07 22:44 
GeneralRe: Read a file on click event Pin
CodingLover15-Oct-07 22:47
CodingLover15-Oct-07 22:47 
GeneralRe: Read a file on click event Pin
Nishad S15-Oct-07 23:55
Nishad S15-Oct-07 23:55 
GeneralRe: Read a file on click event Pin
CodingLover16-Oct-07 0:09
CodingLover16-Oct-07 0:09 
GeneralRe: Read a file on click event Pin
chandu00416-Oct-07 0:14
chandu00416-Oct-07 0:14 
GeneralRe: Read a file on click event Pin
CodingLover16-Oct-07 0:15
CodingLover16-Oct-07 0:15 
GeneralRe: Read a file on click event Pin
Nishad S16-Oct-07 1:14
Nishad S16-Oct-07 1:14 
GeneralRe: Read a file on click event Pin
CodingLover16-Oct-07 1:22
CodingLover16-Oct-07 1:22 
Something like this.

<br />
void CSRFToolDlg::OnBnClickedRead()<br />
{<br />
TCHAR tempBuffer[256] ;<br />
UINT readText = 0;<br />
openFile.SeekToBegin();<br />
readText = openFile.Read(tempBuffer, 256 ) ;<br />
SetDlgItemText(IDC_S_READ, tempBuffer ) ;<br />
}<br />


This code given by Naveen.R and seems it is work. But one issue is there, can't read line of text more than 256 characters.

I appreciate your help all the time...
ErangaSmile | :)

GeneralRe: Read a file on click event Pin
Nishad S16-Oct-07 1:37
Nishad S16-Oct-07 1:37 
GeneralRe: Read a file on click event Pin
CodingLover16-Oct-07 1:41
CodingLover16-Oct-07 1:41 
GeneralRe: Read a file on click event Pin
Nishad S16-Oct-07 1:48
Nishad S16-Oct-07 1:48 
GeneralRe: Read a file on click event Pin
chandu00416-Oct-07 1:40
chandu00416-Oct-07 1:40 
GeneralRe: Read a file on click event Pin
CodingLover16-Oct-07 1:46
CodingLover16-Oct-07 1:46 
GeneralRe: Read a file on click event Pin
chandu00416-Oct-07 2:05
chandu00416-Oct-07 2:05 
GeneralRe: Read a file on click event Pin
chandu00415-Oct-07 21:15
chandu00415-Oct-07 21:15 
GeneralRe: Read a file on click event Pin
CodingLover15-Oct-07 21:22
CodingLover15-Oct-07 21:22 
AnswerRe: Read a file on click event Pin
Naveen15-Oct-07 21:12
Naveen15-Oct-07 21:12 
GeneralRe: Read a file on click event Pin
CodingLover15-Oct-07 21:18
CodingLover15-Oct-07 21:18 
GeneralRe: Read a file on click event Pin
Naveen15-Oct-07 21:27
Naveen15-Oct-07 21:27 
GeneralRe: Read a file on click event Pin
CodingLover15-Oct-07 21:33
CodingLover15-Oct-07 21:33 
GeneralRe: Read a file on click event Pin
Naveen15-Oct-07 22:50
Naveen15-Oct-07 22:50 
GeneralRe: Read a file on click event Pin
CodingLover15-Oct-07 22:55
CodingLover15-Oct-07 22:55 
GeneralRe: Read a file on click event Pin
Naveen15-Oct-07 22:59
Naveen15-Oct-07 22:59 
GeneralRe: Read a file on click event Pin
CodingLover15-Oct-07 23:05
CodingLover15-Oct-07 23:05 
GeneralRe: Read a file on click event Pin
Naveen15-Oct-07 23:08
Naveen15-Oct-07 23:08 

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.