🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀 New videos dropping every week—start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Community Projects
    • Live Sessions
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Community Projects Live Sessions Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Erik Hainer
    Erik Hainer
    3,049 Points

    Problem: "Did you pass the StreamReader constructor the 'fileName'?"

    Posted April 20, 2022 12:03am by Erik Hainer
    Erik Hainer
    3,049 Points
    • C#
    • C# Streams and Data Processing
    • Reading Data
    • Console I/O

    1 Answer

  • Makanaka Zindoga
    Makanaka Zindoga
    4,860 Points

    Please help with task 2

    Posted September 16, 2021 2:07pm by Makanaka Zindoga
    Makanaka Zindoga
    4,860 Points
    • C#
    • C# Streams and Data Processing
    • Reading Data
    • Console I/O

    1 Answer

  • Hamzah Iqbal
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Hamzah Iqbal
    Full Stack JavaScript Techdegree Student 11,145 Points

    I'm stuck at "Write the contents of the first line of a file to the console"

    Posted May 2, 2020 4:55pm by Hamzah Iqbal
    .a{fill-rule:evenodd;}techdegree
    Hamzah Iqbal
    Full Stack JavaScript Techdegree Student 11,145 Points
    • C#
    • C# Streams and Data Processing
    • Reading Data
    • Console I/O

    1 Answer

  • JaeVeine Covington
    JaeVeine Covington
    9,208 Points

    Console I/O challenge help

    Posted March 4, 2020 10:28pm by JaeVeine Covington
    JaeVeine Covington
    9,208 Points
    • C#
    • C# Streams and Data Processing
    • Reading Data
    • Console I/O

    1 Answer

  • Mohamed Monir
    Mohamed Monir
    22,362 Points

    i Test this Code in Cshar REPL but i get error with code Challenge

    Posted December 23, 2017 9:26am by Mohamed Monir
    Mohamed Monir
    22,362 Points
    • C#
    • C# Streams and Data Processing
    • Reading Data
    • Console I/O

    1 Answer

  • Mohamed Monir
    Mohamed Monir
    22,362 Points

    I write This Code but i stell Get " Did you instatiate a new StreamReader?"

    Posted December 23, 2017 8:11am by Mohamed Monir
    Mohamed Monir
    22,362 Points
    • C#
    • C# Streams and Data Processing
    • Reading Data
    • Console I/O

    1 Answer

  • Mohamed Monir
    Mohamed Monir
    22,362 Points

    i need to know where is the Error

    Posted December 22, 2017 10:19pm by Mohamed Monir
    Mohamed Monir
    22,362 Points
    • C#
    • C# Streams and Data Processing
    • Reading Data
    • Console I/O

    2 Answers

  • Radu - Adrian Buha
    PLUS
    Radu - Adrian Buha
    Courses Plus Student 5,535 Points

    Bummer! Did you pass the StreamReader constructor the 'fileName'?

    Posted July 30, 2017 8:28am by Radu - Adrian Buha
    Radu - Adrian Buha
    Courses Plus Student 5,535 Points
    • C#
    • C# Streams and Data Processing
    • Reading Data
    • Console I/O

    1 Answer

  • Valentina Peric
    Valentina Peric
    10,651 Points

    write the contents of the first line of a file to the console

    Posted March 5, 2017 8:56pm by Valentina Peric
    Valentina Peric
    10,651 Points
    • C#
    • C# Streams and Data Processing
    • Reading Data
    • Console I/O

    1 Answer

  • Remco de Wilde
    Remco de Wilde
    9,864 Points

    Code works in Visual studio but not in Code Challange

    Posted February 13, 2017 2:54pm by Remco de Wilde
    Remco de Wilde
    9,864 Points
    • C#
    • C# Streams and Data Processing
    • Reading Data
    • Console I/O

    1 Answer

  • Joseph Robertson
    Joseph Robertson
    12,060 Points

    I'm stuck! Help!! Can't figure out what's wrong.

    Posted October 24, 2016 10:57pm by Joseph Robertson
    Joseph Robertson
    12,060 Points
    • C#
    • C# Streams and Data Processing
    • Reading Data
    • Console I/O

    1 Answer

  • shawn khah
    shawn khah
    15,082 Points

    i dont know what's wrong!

    Posted September 29, 2016 7:12pm by shawn khah
    shawn khah
    15,082 Points
    • C#
    • C# Streams and Data Processing
    • Reading Data
    • Console I/O

    1 Answer

  • shawn khah
    shawn khah
    15,082 Points

    help plz

    Posted September 29, 2016 6:35pm by shawn khah
    shawn khah
    15,082 Points
    • C#
    • C# Streams and Data Processing
    • Reading Data
    • Console I/O

    3 Answers

  • shawn khah
    shawn khah
    15,082 Points

    help plz

    Posted September 27, 2016 6:02pm by shawn khah
    shawn khah
    15,082 Points
    • C#
    • C# Streams and Data Processing
    • Reading Data
    • Console I/O

    1 Answer

  • Calvin Secrest
    Calvin Secrest
    24,815 Points

    Inside the using block, write the contents of the first line of the file to the Console.

    Posted September 23, 2016 3:40pm by Calvin Secrest
    Calvin Secrest
    24,815 Points
    • C#
    • C# Streams and Data Processing
    • Reading Data
    • Console I/O

    2 Answers

  • Calvin Secrest
    Calvin Secrest
    24,815 Points

    Use the provided fileName variable to create a new StreamReader object named reader. Wrap the reader object with a using

    Posted September 23, 2016 12:19am by Calvin Secrest
    Calvin Secrest
    24,815 Points
    • C#
    • C# Streams and Data Processing
    • Reading Data
    • Console I/O

    3 Answers

  • Brad Price
    Brad Price
    18,570 Points

    am i not passing the 'filename'?

    Posted September 20, 2016 10:50am by Brad Price
    Brad Price
    18,570 Points
    • C#
    • C# Streams and Data Processing
    • Reading Data
    • Console I/O

    1 Answer

  • Brett Harrison
    Brett Harrison
    11,941 Points

    what am I missing

    Posted September 18, 2016 3:52pm by Brett Harrison
    Brett Harrison
    11,941 Points
    • C#
    • C# Streams and Data Processing
    • Reading Data
    • Console I/O

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.