Home Forums C++ Programming File I/O Question

Viewing 0 reply threads
  • Author
    Posts
    • #2009
      jhansi
      Participant

      I’m attempting to link a home-brewed C++ program to a rail-trafffic simulation model (adapted for hoobbyist use) with little success.
       
      The commerical program (Railsoft Train Dispatcher) offers an I/O interface in the form of a text file, which must be maintained in the same folder as the application.
       
      Attempts to write to this file have been unsuccessful so far, though occasionally, the compliler (DEV, on Windows XP) will create a new file within the C++ application.
       
      Admittedly, I’m very much a neophyte; but any input from the membership would be appreciated, and I’ll try to provide further details as the problem unfolds.

       UPDATE 10/7/07 
      Since the previous post. I’ve been successful in writing output to a 3.5″ floppy diskette, but attempts to write to my p/c’s hard disk (by changing ‘a’ to ‘c’ in relevant code lines) have not been successful as yet.
       
      One possibility that has occured to me is the need for additional pre-processing directives. I’m currenty using ifstream, ofstream, and have added iomanip since the original post.

Viewing 0 reply threads
  • The forum ‘C++ Programming’ is closed to new topics and replies.