Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File transfer using Random Access

Status
Not open for further replies.

Thmemuar

Programmer
Sep 23, 2002
8
CA
Hi.

Up to now, I've been doing file transfers back and forth from a central office to remote offices, automatically, opening a port for Output when sending, and Input when receiving.

Does anyone know if there's a way to open both ports (local and remote) for Random, to transfer these files, so I don't have to keep switching modes?

The files to be sent and received will be of various lengths on various days.

Thanks
 
Yes, RANDOM is the default, and it is QBasic's "open I/O" mode (both read and write). See the QBasic online documentation (Help) - they even give an example under "OPEN COM" though I suppose they should have been more explicit in saying you can both read and write the file opened this way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top