Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: c++ help  (Read 2150 times)

0 Members and 1 Guest are viewing this topic.

batchmaster60

  • Guest
c++ help
« on: July 27, 2009, 06:52:53 PM »
How can I create a file in the same way as batch using c++, here is batch code

Code: [Select]
echo hello world >>helloworld.txt

thanks in advance,

batchmaster60

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: c++ help
« Reply #1 on: July 27, 2009, 06:56:42 PM »
file I/O functions.

namely, fopen() fwrite() and fclose()

I was trying to dereference Null Pointers before it was cool.

batchmaster60

  • Guest
Re: c++ help
« Reply #2 on: July 27, 2009, 08:17:01 PM »
can you show me some  examples?

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: c++ help
« Reply #3 on: July 27, 2009, 08:24:04 PM »
 ;D
" Anyone who goes to a psychiatrist should have his head examined. "

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
I was trying to dereference Null Pointers before it was cool.