# How do I display a text file in debug console or windows form

**URL:** <https://community.rapyd.net/t/how-do-i-display-a-text-file-in-debug-console-or-windows-form/53501>\
**Category:** ⚙️ API\
**Tags:** c-plus-plus\
**Created:** [August 10, 2022, 8:15pm UTC](https://community.rapyd.net/t/how-do-i-display-a-text-file-in-debug-console-or-windows-form/53501 "2022-08-10T20:15:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slaw111](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Slaw111](https://community.rapyd.net/u/Slaw111)\
**Post date:** [August 10, 2022, 8:15pm UTC](https://community.rapyd.net/t/how-do-i-display-a-text-file-in-debug-console-or-windows-form/53501/1 "2022-08-10T20:15:41Z")

</div>

I have no idea how to code and im currently going to study coding and programing at my school due to profile i chosed. My friend wich has a job of developer or something like that gave me 3 tasks and i have no damn idea how to even finish one of them wich is displaying a text file in debug console or windows form. Could anyone help?

---

<div class="post-metadata">

**Author:** ![Community\_Team](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@Community\_Team](https://community.rapyd.net/u/Community_Team)\
**Post date:** [August 10, 2022, 9:21pm UTC](https://community.rapyd.net/t/how-do-i-display-a-text-file-in-debug-console-or-windows-form/53501/2 "2022-08-10T21:21:04Z")

</div>

I’m not sure exactly what your friend is asking. Maybe you can ask for a more clear directions on what program he’s referring to? Is this command line in the command prompt for Windows? I’m not a Windows user, but I cannot tell what he’s referring to.

Maybe some good places to start following are these tutorials and then the resources listed below:

[![](https://us1.discourse-cdn.com/flex016/uploads/rapyd/original/3X/b/6/b6a3d8adaa4f27b099be3baaf8a789def7035899.jpeg "Windows Command Line Tutorial - 1 - Introduction to the Command Prompt") ](https://www.youtube.com/watch?v=MBBWVgE0ewk)

[![](https://us1.discourse-cdn.com/flex016/uploads/rapyd/original/3X/e/9/e91c62ced665304901d21d64e15cd13efc43b500.jpeg "Windows Command Line Tutorial - 2 - Listing Files and Directories") ](https://www.youtube.com/watch?v=7ABkcHLdG_A)

[![](https://us1.discourse-cdn.com/flex016/uploads/rapyd/original/3X/b/7/b75e544f3f1053beb8728f3ae2fcb802e177354c.jpeg "Save Command Prompt output into a text file") ](https://www.youtube.com/watch?v=1zZ88P5ppDE)

> **[freeCodeCamp.org](https://www.freecodecamp.org/)**
>
> Learn to Code — For Free

> **[W3Schools Online Web Tutorials](https://www.w3schools.com/)**
>
> W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

> **[ReallyConfused](https://reallyconfused.co/)**
>
> Explore, Create and Share Learning Roadmaps in Tech

[https://edabit.com/](https://edabit.com/)

---

<div class="post-metadata">

**Author:** ![Slaw111](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Slaw111](https://community.rapyd.net/u/Slaw111)\
**Post date:** [August 11, 2022, 8:27am UTC](https://community.rapyd.net/t/how-do-i-display-a-text-file-in-debug-console-or-windows-form/53501/3 "2022-08-11T08:27:29Z")

</div>

Tasks:

1. Display this file in the debug console or windows form so that text would show Slaw Is Amazing
2. Create a code that reads the file and then creates another txt file with the word “what?” in it.
3. Create a code that would read the file and then would create another txt file that would adjust the sequence of words to Slaw Is Amazing

Those are the tasks he gave me exacly from what he texted i Copied and pasted them

Im doing it in C++ in visual studio

---

<div class="post-metadata">

**Author:** ![Slaw111](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Slaw111](https://community.rapyd.net/u/Slaw111)\
**Post date:** [August 11, 2022, 8:30am UTC](https://community.rapyd.net/t/how-do-i-display-a-text-file-in-debug-console-or-windows-form/53501/4 "2022-08-11T08:30:42Z")

</div>

Task 1 means a txt file with mixed words  
Amazing  
Is  
Slaw

---

<div class="post-metadata">

**Author:** ![Community\_Team](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@Community\_Team](https://community.rapyd.net/u/Community_Team)\
**Post date:** [August 11, 2022, 4:39pm UTC](https://community.rapyd.net/t/how-do-i-display-a-text-file-in-debug-console-or-windows-form/53501/5 "2022-08-11T16:39:28Z")

</div>

Ok that makes more sense.

Maybe start with some tutorials to work your way towards reading and writing files.

If you already know how to write a string you can skip this [The C++ Programming Language](https://www.freecodecamp.org/news/the-c-plus-plus-programming-language/)

I would run through the [tutorials here](https://www.cplusplus.com/doc/tutorial/), and it looks like the [last one is what you are looking for](https://www.cplusplus.com/doc/tutorial/files/).

Other resources:

> **[C++ Compiler Explained: What is the Compiler and How Do You Use it?](https://www.freecodecamp.org/news/c-compiler-explained-what-is-the-compiler-and-how-do-you-use-it/)**
>
> Intro to C++ Compilers In order to get started with C++, you will need to learn a little about compilers and how C++ runs on your computer. When all is said and done, computers only understand one language, machine language. Machine language is...

> **[How to compile your C++ code in Visual Studio Code](https://www.freecodecamp.org/news/how-to-compile-your-c-code-in-visual-studio-code/)**
>
> \> PS: This was published on my Blog here \[https://bolajiayodeji.com/how-to-compile-your-c-code-in-visual-studio-code-cjxu6aool001n7ls1d5nfo1mt\] . C++ is a statically-typed, free-form, (usually) compiled, multi-paradigm, intermediate-level...

[https://www.learncpp.com/cpp-tutorial/basic-file-io/](https://www.learncpp.com/cpp-tutorial/basic-file-io/)
