By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,986 Members | 2,030 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,986 IT Pros & Developers. It's quick & easy.

writting text file inputs to edit boxes using vc++

P: 4
can any one tell how to write a text file inputs to different edit boxes using a button.....text file contain different data.displaying each data in different edit boxes using single button click
Jun 18 '07 #1
Share this Question
Share on Google+
5 Replies


P: 4
urgent.....
please help
can any one tell how to get the input of a text file in edit boxes(6)...text file can contain different data(int,string etc)...
thanx
Jun 18 '07 #2

sicarie
Expert Mod 2.5K+
P: 4,677
can any one tell how to write a text file inputs to different edit boxes using a button.....text file contain different data.displaying each data in different edit boxes using single button click
I'm sorry, I don't understand your question, perhapse you can show us what you have tried? It sounds like you are attempting to take a CSV file or somethign similar, and have an "auto-populate" button to fill in the values of an app, but I'm not entirely sure.
Jun 18 '07 #3

P: 4
I'm sorry, I don't understand your question, perhapse you can show us what you have tried? It sounds like you are attempting to take a CSV file or somethign similar, and have an "auto-populate" button to fill in the values of an app, but I'm not entirely sure.





this is the code i tried....actually i am using text file for the input.

CStdioFile In;
if (!In.Open("data.txt",CFile::modeRead))
{
return; //could not open file
}
CString Temp;
CString Buffer ="";
while (In.ReadString(Temp))
{
Buffer += Temp;

}
In.Close();
GetDlgItem(IDC_INPUT1)->SetWindowText(Buffer);



the thing is that i need to populate all the edit boxes using the data in the text file or it can be csv also....
Jun 19 '07 #4

100+
P: 100
What is IDC_INPUT1??
Jun 19 '07 #5

P: 4
What is IDC_INPUT1??

id for the first edit box
Jun 19 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.