Click here to Skip to main content
15,886,362 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: complete Pin
prasad_som1-Mar-07 17:11
prasad_som1-Mar-07 17:11 
QuestionHelp Pin
Spartan161-Mar-07 9:54
Spartan161-Mar-07 9:54 
AnswerRe: Help Pin
Newbie001-Mar-07 11:11
Newbie001-Mar-07 11:11 
AnswerRe: Help Pin
Mark Salsbery1-Mar-07 11:32
Mark Salsbery1-Mar-07 11:32 
AnswerRe: Help Pin
led mike1-Mar-07 11:41
led mike1-Mar-07 11:41 
AnswerRe: Help Pin
Christian Graus1-Mar-07 13:03
protectorChristian Graus1-Mar-07 13:03 
GeneralRe: Help Pin
Spartan162-Mar-07 6:32
Spartan162-Mar-07 6:32 
QuestionRead from file into array Pin
JBAK_CP1-Mar-07 2:33
JBAK_CP1-Mar-07 2:33 
I'm currently using 'fgets' to read a file like the sample below, and need to do some processing on it.....My first question is, is there a way for me to read the X,Y & Z data and store them into a multi-dimensional array? Secondly, the number of entries for the X,Y & Z data can vary from one file to another, so if an array is to be used, it has to be able to be sized dynamically.

using C++, Visual Studio 6.0

Any help would be greatly apperciated, thanks:

Sample File Data:

Name: Test
Date: mm/dd/yyyy

X Y Z

404.72 1064.42 60
402.224 1064.58 60
399.728 1064.75 60

Description: This is a test

//---------------------------------------------------------------------------------------------------------
Here is the code I have so far:

CFile importFile;
importFile.Open(fullName, CFile::modeRead);

CArchive ar (&importFile, CArchive::load);

if(!ar.ReadString(strLine))
{
importFile.Close();
return;
}

do // Repeat while there are lines in the file left to process
{
if( strLine.GetLength() == 0)
{ continue;

}

CString strText = strLine;

if(strText.GetLength() != 0)
MessageBox(strText,NULL,NULL);


}while(ar.ReadString(strLine));

//---------------------------------------------------------------------------------------------------------
AnswerRe: Read from file into array Pin
prasad_som1-Mar-07 2:38
prasad_som1-Mar-07 2:38 
AnswerRe: Read from file into array Pin
Hamid_RT1-Mar-07 6:49
Hamid_RT1-Mar-07 6:49 
QuestionVisual C++ 2005 Pin
MoustafaS28-Feb-07 21:00
MoustafaS28-Feb-07 21:00 
AnswerRe: Visual C++ 2005 Pin
Michael Dunn1-Mar-07 5:50
sitebuilderMichael Dunn1-Mar-07 5:50 
GeneralRe: Visual C++ 2005 Pin
MoustafaS1-Mar-07 6:01
MoustafaS1-Mar-07 6:01 
Questionsizeof Operator anomaly Pin
Bulky Fellow28-Feb-07 19:35
Bulky Fellow28-Feb-07 19:35 
AnswerRe: sizeof Operator anomaly Pin
prasad_som1-Mar-07 2:39
prasad_som1-Mar-07 2:39 
GeneralOT Pin
prasad_som1-Mar-07 19:08
prasad_som1-Mar-07 19:08 
QuestionGetting IP Address [modified] Pin
Vichitram25-Feb-07 22:42
Vichitram25-Feb-07 22:42 
AnswerRe: Getting IP Address Pin
prasad_som25-Feb-07 23:10
prasad_som25-Feb-07 23:10 
AnswerRe: Getting IP Address Pin
Christian Graus25-Feb-07 23:17
protectorChristian Graus25-Feb-07 23:17 
AnswerRe: Getting IP Address Pin
Hamid_RT1-Mar-07 6:49
Hamid_RT1-Mar-07 6:49 
QuestionPut value on Form from FolderBrowserDialog Pin
Girkers24-Feb-07 21:54
Girkers24-Feb-07 21:54 
AnswerRe: Put value on Form from FolderBrowserDialog Pin
Girkers2-Mar-07 17:25
Girkers2-Mar-07 17:25 
Question[C] Multithreading in windows Pin
venetus24-Feb-07 16:05
venetus24-Feb-07 16:05 
AnswerRe: [C] Multithreading in windows Pin
Christian Graus24-Feb-07 16:25
protectorChristian Graus24-Feb-07 16:25 
QuestionRe: [C] Multithreading in windows Pin
Newbie0025-Feb-07 0:03
Newbie0025-Feb-07 0:03 

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.