Intro to file input/file output in C++ tutorial
Results 1 to 8 of 8

Thread: Intro to file input/file output in C++ tutorial

  1. #1
    Senior Member
    Join Date
    May 2002
    Posts
    344

    Intro to file input/file output in C++ tutorial

    Hey guys, an AO member has asked me to write a tutorial on file input and file output in C++. In this tutorial I plan to teach the readers how to open and close a file, how to read the contents of a file, how to write into a file, how to check to see if a file exists, and how to copy the content of one file into another file. If you guys have any other suggestions, please let me know ASAP because i am almost finished writing this tutorial.
    Support your right to arm bears.


    ^^This was the first video game which i played on an old win3.1 box

  2. #2
    Senior Member
    Join Date
    May 2003
    Posts
    207
    so pretty much explaining the use of fstream.h?

    go for it!

  3. #3
    Senior Member
    Join Date
    Nov 2001
    Posts
    4,786
    why not make it usfull. like a project to parse a log for certain strings and output a report.
    Bukhari:V3B48N826 “The Prophet said, ‘Isn’t the witness of a woman equal to half of that of a man?’ The women said, ‘Yes.’ He said, ‘This is because of the deficiency of a woman’s mind.’”

  4. #4
    Senior Member
    Join Date
    May 2003
    Posts
    207
    Originally posted here by Tedob1
    why not make it usfull. like a project to parse a log for certain strings and output a report.
    definately... lots of security programs out there output tons of logs... PLUS, there are lots of console based programs that only offer text output... use an example in ur tutorial on parsing those files into nice, neat tables, perhaps GUI

  5. #5
    Senior Member
    Join Date
    May 2002
    Posts
    344
    so pretty much explaining the use of fstream.h?
    yeah thats correct

    why not make it usfull.
    I personally think the stuff i will be covering is pretty usefull for a new C++ programmer...

    like a project to parse a log for certain strings and output a report.
    remember, this is suppose to be an introduction to using the fstream.h library. This tutorial will be for new C++ programmers that want to do basic stuff using the fstream.h library.
    Support your right to arm bears.


    ^^This was the first video game which i played on an old win3.1 box

  6. #6
    Senior Member
    Join Date
    May 2003
    Posts
    207
    very true... but i remember in computer science, one of the first sample scripts we did with fstream.h was parse a logfile... but it's your tutorial

  7. #7
    Senior Member
    Join Date
    May 2002
    Posts
    344
    it's your tutorial
    hehehe
    Support your right to arm bears.


    ^^This was the first video game which i played on an old win3.1 box

  8. #8
    Senior Member
    Join Date
    May 2002
    Posts
    344
    alright i posted it in the tutorial forum you can go here to visit it http://www.antionline.com/showthread...hreadid=247364
    Support your right to arm bears.


    ^^This was the first video game which i played on an old win3.1 box

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •