1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Many O/p Of File

Discussion in 'C' started by techme, Apr 26, 2010.

  1. techme

    techme New Member

    Joined:
    Feb 15, 2010
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    0
    As a part of the project I'm working on multiple .ps files need be generated. Note the following:

    This means if 0 is passed as a parameter, file with filename forGallery0.ps should be formed(in pics folder). However, I got the following error:

    Any suggestions on how to avoid this, or other ideas to print files with different filenames are very welcome. I understand that
    std:fstream saveFile("something.ps"); would work, but I want this to be dynamic.
     
  2. techinspiration

    techinspiration New Member

    Joined:
    Feb 14, 2010
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    It wants a pointer to char, so give it a pointer to char.

     

Share This Page