HighTechTalks DotNet Forums  

stdin object conversion to .net

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss stdin object conversion to .net in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default stdin object conversion to .net - 11-04-2003 , 11:12 AM






If you can help me I thank you in advance.

My Problem:
Read data that is in five (5) columns and many rows. I do not know
the bytes that are between them, because they change. There is white
space though. Using something like :
infile >> x1 >> x2 >> x3 >> x4 >> x5;

everything works ok like this because of the whitespace between the
columns, but I can't seem to figure out how to do the same thing in
c++ .net.

Again, any help would be appreciated,
Heath

Reply With Quote
  #2  
Old   
Peter van der Goes
 
Posts: n/a

Default Re: stdin object conversion to .net - 11-05-2003 , 09:19 AM







"hivie" <hivie2000 (AT) yahoo (DOT) com> wrote

Quote:
If you can help me I thank you in advance.

My Problem:
Read data that is in five (5) columns and many rows. I do not know
the bytes that are between them, because they change. There is white
space though. Using something like :
infile >> x1 >> x2 >> x3 >> x4 >> x5;

everything works ok like this because of the whitespace between the
columns, but I can't seem to figure out how to do the same thing in
c++ .net.

Again, any help would be appreciated,
Heath
Can you tell us what kind of C++ .NET application you are trying to build,
or possibly post a short sample program that does not work for you?
We teach standard console applications for beginning students, using Visual
Studio .NET 2003, and the kind of code you cite works fine for file I/O
here.

--
Peter - [MVP - Academic]




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.