- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using the /fpscomp:filesfromcmd option I can specify which file should be opened by the program.
Running f.e. MyProg.exe Test.Out opens test.out on the first Open statement.
But in this way the program only opens the file, allowing to read, write, delete etc by unit number. How to proceed if my program must actually handle the file name, f.e. producing derived files like Test1.out, test2.out, test3.out. Then in some way the actual filename must be accessible within the program. Maybe using getArg?
Running f.e. MyProg.exe Test.Out opens test.out on the first Open statement.
But in this way the program only opens the file, allowing to read, write, delete etc by unit number. How to proceed if my program must actually handle the file name, f.e. producing derived files like Test1.out, test2.out, test3.out. Then in some way the actual filename must be accessible within the program. Maybe using getArg?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you mean something like
open(6, File='Test.dat', RECORDTYPE='STREAM')
open(6, File='Test.dat', RECORDTYPE='STREAM')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Look at the GETOPENFILENAME example program.
Steve
Steve
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page