Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ImageMagick++ - ErrorMissingDelegate at memorry location Pin
Rajeev Raina2-Mar-17 6:28
Rajeev Raina2-Mar-17 6:28 
GeneralRe: ImageMagick++ - ErrorMissingDelegate at memorry location Pin
Jochen Arndt2-Mar-17 22:02
professionalJochen Arndt2-Mar-17 22:02 
AnswerRe: ImageMagick++ - ErrorMissingDelegate at memorry location Pin
Randor 7-Mar-17 10:28
professional Randor 7-Mar-17 10:28 
QuestionWhat is the difference between turboc, visual studio and online compilers Pin
ArvindSai1-Mar-17 19:26
ArvindSai1-Mar-17 19:26 
AnswerRe: What is the difference between turboc, visual studio and online compilers Pin
Richard MacCutchan1-Mar-17 20:45
mveRichard MacCutchan1-Mar-17 20:45 
GeneralRe: What is the difference between turboc, visual studio and online compilers Pin
ArvindSai1-Mar-17 23:33
ArvindSai1-Mar-17 23:33 
AnswerRe: What is the difference between turboc, visual studio and online compilers Pin
Jochen Arndt2-Mar-17 0:21
professionalJochen Arndt2-Mar-17 0:21 
GeneralRe: What is the difference between turboc, visual studio and online compilers Pin
ArvindSai2-Mar-17 3:47
ArvindSai2-Mar-17 3:47 
AnswerRe: What is the difference between turboc, visual studio and online compilers Pin
leon de boer2-Mar-17 2:11
leon de boer2-Mar-17 2:11 
GeneralRe: What is the difference between turboc, visual studio and online compilers Pin
ArvindSai2-Mar-17 2:18
ArvindSai2-Mar-17 2:18 
AnswerRe: What is the difference between turboc, visual studio and online compilers Pin
Munchies_Matt16-Mar-17 6:24
Munchies_Matt16-Mar-17 6:24 
QuestionHow can I pass macros with commas into other macros? Pin
arnold_w1-Mar-17 7:38
arnold_w1-Mar-17 7:38 
AnswerRe: How can I pass macros with commas into other macros? Pin
Richard MacCutchan1-Mar-17 8:57
mveRichard MacCutchan1-Mar-17 8:57 
AnswerRe: How can I pass macros with commas into other macros? Pin
leon de boer1-Mar-17 16:44
leon de boer1-Mar-17 16:44 
Questionsha code Pin
Member 118556971-Mar-17 2:10
Member 118556971-Mar-17 2:10 
AnswerRe: sha code Pin
Afzaal Ahmad Zeeshan1-Mar-17 2:21
professionalAfzaal Ahmad Zeeshan1-Mar-17 2:21 
AnswerRe: sha code Pin
Jochen Arndt1-Mar-17 2:40
professionalJochen Arndt1-Mar-17 2:40 
QuestionRe: sha code Pin
David Crow1-Mar-17 4:16
David Crow1-Mar-17 4:16 
QuestionRegGetValue and SHRegGetValue Pin
ForNow28-Feb-17 16:04
ForNow28-Feb-17 16:04 
QuestionRe: RegGetValue and SHRegGetValue Pin
Richard MacCutchan28-Feb-17 21:37
mveRichard MacCutchan28-Feb-17 21:37 
AnswerRe: RegGetValue and SHRegGetValue Pin
Randor 7-Mar-17 10:31
professional Randor 7-Mar-17 10:31 
QuestionReading from a file in C++ Windows Application Forms Pin
Member 1300044128-Feb-17 3:59
Member 1300044128-Feb-17 3:59 
Hello,

I am working on a windows Forms Application (C++) Programm in Visual Studio 2015.
I have figured out how to open a file. And read from it.
But what I can't figure out is how to only read the second line or the second row from my file (.cvs file).

What I am looking for is the syntax to use instead of RealAllText.
I looked up the Objectkatalog. But I can't get "ReadLine" to work.
My code is posted below.

I really hope someone can help me Smile | :)
Kind regards


private: System::Void button6_Click_1(System::Object^ sender, System::EventArgs^ e) {
Stream^ myStream;
OpenFileDialog^ openFileDialog1 = gcnew OpenFileDialog;

if (openFileDialog1->ShowDialog() == System::Windows::Forms::DialogResult::OK)
{
if( (myStream = openFileDialog1->OpenFile()) != nullptr )
{
String^ strfilename = openFileDialog1->InitialDirectory + openFileDialog1->FileName;
String^ Readfile = File::ReadAllText(strfilename);

Malz4->Text = Readfile;

myStream->Close();
}

}
AnswerRe: Reading from a file in C++ Windows Application Forms Pin
Richard MacCutchan28-Feb-17 6:27
mveRichard MacCutchan28-Feb-17 6:27 
GeneralRe: Reading from a file in C++ Windows Application Forms Pin
Member 1300044128-Feb-17 9:15
Member 1300044128-Feb-17 9:15 
GeneralRe: Reading from a file in C++ Windows Application Forms Pin
Richard MacCutchan28-Feb-17 21:27
mveRichard MacCutchan28-Feb-17 21:27 

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.