- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Folks
I need to create a code in Intel Visual Fortran, that program generate an output file. I need to put that output file in a network path ex: \\\\server_name\\resource_shared
I will appreciate if you could provide me the commands in fortran to do this! please
Thank you in advance and regards
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It worked OK for me:
program networkfile
program networkfile
implicit none
character(256) filename, record
filename="//sstdfile01/optics/helloworld.txt"
open(unit=10, file=filename, form="formatted",status="unknown")
write(10,*) 'Hello World'
close(10)
open(unit=10, file=filename, form="formatted",status="unknown")
read(10,'(a256)') record
close(10)
print *,trim(record)
pause
end program networkfile
Please note that, because it is accessing a network drive, there may be several seconds delay sometimes between writing and reading the file.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page