Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • 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,100 Points

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

    Posted October 24, 2016 10:57pm by Joseph Robertson
    Joseph Robertson
    12,100 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,955 Points

    what am I missing

    Posted September 18, 2016 3:52pm by Brett Harrison
    Brett Harrison
    11,955 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord