File I/O Question

Home Forums C++ Programming File I/O Question

This topic contains 0 replies, has 1 voice, and was last updated by  jhansi 10 years, 2 months ago.

  • Author
    Posts
  • #2009

    jhansi
    Member

    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.

You must be logged in to reply to this topic.

0 Shares
Share
+1
Tweet
Share
Stumble