Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

C++ Console Lesson 47: Basic File Input and Output

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
18,332
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 3, 2010

http://xoax.net

This C++ video tutorial explains how to use STL file streams to read from and write to files. Lesson Page:
http://xoax.net/comp/cpp/console/Lesson47.php

Escape Sequences:
http://xoax.net/comp/cpp/reference/asciitable.php#escapeseq

Please submit all questions to our forum: http://xoax.net/forum/

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Top Comments

  • I like that this got featured many people don't know much about the C++ and it can help many people out.

  • Good, is possible to demonstrate how to read for one file to write in another this is very handy ...this hold set of videos are the greatest honestly ...

see all

All Comments (19)

Sign In or Sign Up now to post a comment!
  • @kelly2000398 try this inside the main()

    system("cd\ && c:\windows\notepad.exe");

  • @kelly2000398 In C it is possible, unfortunately I haven't reached so far in C++ programming, but I'm sure it's possible.

  • is it possible to just open the note pad with the program??

  • Disregard the last comment; I have figured it out.

  • This is grand, thanks, but what if I wanted to use the input as an integer to use in a function in my file and also put the input part in a loop so that for each run through the loop, a new line's value is used in the function? You have the text being put in the program as a string, I need an integer instead.

  • I try this, but when i compile and run, it make another file with the same name as my C++ file that i'm using, and doesn't write to the text file.

  • these tutorials are really amazing... short but precise. every second is worth spending... so much of information in so little time ... thanks a lot guys for ur effort...

  • thanlsssssssssssssssssssssssss­ssssssssssssssssssssssssssssss­ssssssssssssssssssssssssssssss­ssssssssssssssssssssssssssssss­sssssssssss

  • Thanks so much for uploading these videos. it helped me brush up and remember the advanced concepts from the last course i took a year ago.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more