Click here to Skip to main content
15,895,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: To read a complete string Pin
Madhu Nair12-May-09 19:20
Madhu Nair12-May-09 19:20 
AnswerRe: To read a complete string Pin
«_Superman_»12-May-09 19:31
professional«_Superman_»12-May-09 19:31 
GeneralRe: To read a complete string Pin
Pankaj D.Dubey12-May-09 19:50
Pankaj D.Dubey12-May-09 19:50 
GeneralRe: To read a complete string Pin
«_Superman_»12-May-09 20:03
professional«_Superman_»12-May-09 20:03 
GeneralRe: To read a complete string Pin
Pankaj D.Dubey12-May-09 20:16
Pankaj D.Dubey12-May-09 20:16 
GeneralRe: To read a complete string Pin
«_Superman_»12-May-09 21:05
professional«_Superman_»12-May-09 21:05 
GeneralRe: To read a complete string Pin
Madhu Nair12-May-09 21:14
Madhu Nair12-May-09 21:14 
GeneralRe: To read a complete string Pin
Pankaj D.Dubey12-May-09 21:28
Pankaj D.Dubey12-May-09 21:28 
sorry for the same...


fopen("some_file.txt","r"); // opening the text file to read
Search(fp_mt2, "Text: 2", "xyz"); // search string xyz after string Text

for(i = 0; i < 10; i++) // reading 10 strings from 10 lines
{ // (starting string from each line)
fgets(line_buffer, 200, fp_mt2); // reading a line here
j=0;
while(line_buffer[j]!=':') // starts reading after ':'
{
j++;
}
j = j + 2;
mt2[i] = line_buffer[j]; // storing the string in an array

}
m_txt1 = mt2[0]; // output: displaying first string
m_txt2 = mt2[1]; // output: displaying second string
..............
..............
m_txt10 = mt2[9];


m_txt is the textbox.
now, i want to read a complete string but i am getting only first character of every string of every line.
where each string carry 2 or 3 characters.

would u please help me further, now ?

French is the language of love, for everything else there is c++ ...(anonymous)

GeneralRe: To read a complete string Pin
Chandrasekharan P12-May-09 21:54
Chandrasekharan P12-May-09 21:54 
GeneralRe: To read a complete string Pin
«_Superman_»12-May-09 21:55
professional«_Superman_»12-May-09 21:55 
GeneralRe: To read a complete string Pin
Rajesh R Subramanian12-May-09 22:39
professionalRajesh R Subramanian12-May-09 22:39 
GeneralRe: To read a complete string Pin
«_Superman_»12-May-09 22:49
professional«_Superman_»12-May-09 22:49 
GeneralRe: To read a complete string Pin
Pankaj D.Dubey12-May-09 22:40
Pankaj D.Dubey12-May-09 22:40 
GeneralRe: To read a complete string Pin
«_Superman_»12-May-09 22:56
professional«_Superman_»12-May-09 22:56 
GeneralRe: To read a complete string Pin
Pankaj D.Dubey12-May-09 23:04
Pankaj D.Dubey12-May-09 23:04 
QuestionCustomised Browse for folder dialog problem Pin
VC++Maniac12-May-09 18:47
VC++Maniac12-May-09 18:47 
QuestionCut and Drag and Drop File/Folder Path Pin
MsmVc12-May-09 18:19
MsmVc12-May-09 18:19 
AnswerRe: Cut and Drag and Drop File/Folder Path Pin
enhzflep12-May-09 19:46
enhzflep12-May-09 19:46 
GeneralRe: Cut and Drag and Drop File/Folder Path Pin
MsmVc12-May-09 21:06
MsmVc12-May-09 21:06 
GeneralRe: Cut and Drag and Drop File/Folder Path Pin
MsmVc12-May-09 21:53
MsmVc12-May-09 21:53 
GeneralRe: Cut and Drag and Drop File/Folder Path [LONG POST] Pin
enhzflep12-May-09 22:18
enhzflep12-May-09 22:18 
GeneralRe: Cut and Drag and Drop File/Folder Path [LONG POST] Pin
MsmVc12-May-09 22:22
MsmVc12-May-09 22:22 
QuestionRe: Cut and Drag and Drop File/Folder Path Pin
David Crow13-May-09 3:27
David Crow13-May-09 3:27 
QuestionWin32 web service client over SSL Pin
eight12-May-09 18:00
eight12-May-09 18:00 
AnswerRe: Win32 web service client over SSL Pin
eight12-May-09 22:33
eight12-May-09 22:33 

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.