Opening / Writing To Files In PDS 7.1 
Author Message
 Opening / Writing To Files In PDS 7.1

I was wondering if anyone could give me some quick pointers through e-mail
about how to open a file for input and how to read and write to that file. I
have read the help section, but don't understand it too well. I'm trying to
have my program I am writing open a file, and if the file has a certain number
or something like that in it, then my program will do something. Hope that made
sense. Thanks.

???randon F.??

??Web Site: http://www.*-*-*.com/



Thu, 25 Jan 2001 03:00:00 GMT  
 Opening / Writing To Files In PDS 7.1

Quote:
>I was wondering if anyone could give me some quick pointers through e-mail
>about how to open a file for input and how to read and write to that file. I
>have read the help section, but don't understand it too well. I'm trying to
>have my program I am writing open a file, and if the file has a certain number
>or something like that in it, then my program will do something. Hope that made
>sense. Thanks.

Yes, it makes sence. Assuming that you only need to hold one number to the
file it is rather simple:

OPEN "O", #1, "THENUMBR.DAT"
  PRINT #1, Nbr%
CLOSE #1

OPEN "I", #1, "THENUMBR.DAT"
  INPUT #1, Nbr%
CLOSE #1

This all is NOT particularly sophisticated but is works.
  ____    _    ____      ____  _____
 |  _ \  / \  / ___) __ | ___)(_   _)    Don Schullian

 |____//_/ \_\(____/\__/|_|     |_|      www.DASoftVSS
 ___________________________________   www.basicguru.com
     Vertical Software Solutions



Thu, 25 Jan 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Year2K Compliance of Microsoft Basic PDS 7.1 and Consulting Firms specializing in Y2K and PDS 7.1

2. QB 7.1 (sorry - PDS 7.1)

3. PDS 7.1 HOW MANY FILES?

4. Help Quick Basic PDS 7.1 files

5. PDS 7.1 to PowerBasic

6. DLLs in QB 7.1 PDS

7. PDS 7.1 date validation

8. MS PDS 7.1 and ProBas 5.6

9. FS: QBasic PDS 7.1

10. PDS 7.1 Extender

11. PDS 7.1 and HPFS

12. PDS (Qbasic 7.1) and com3: & com4:

 

 
Powered by phpBB® Forum Software