Solved

FILE IO in C#

Posted on 2003-11-16
1
756 Views
Last Modified: 2012-05-04
How do you write the equivelent in C#?

while (!streamreader.eof())
{
      // do something
}

the eof function doesnt seem to exist in C#
0
Comment
Question by:pmesick12345
1 Comment
 
LVL 5

Accepted Solution

by:
tgannetts earned 50 total points
Comment Utility
while((strLine = sr.ReadLine())!=null)
{
Console.WriteLine(strLine);
                        }
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now