|
-
Apr 5th, 2000, 06:02 AM
#1
Thread Starter
Fanatic Member
Hi all.
Is there a way to open a File for both input and output at the same time without opening it for Random access? I don't want to use Random access because the length of the lines of data are not consistent.
Thanks.
-
Apr 5th, 2000, 04:18 PM
#2
transcendental analytic
You can open it in Binary! It's always the fastest way to read and write files.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Apr 5th, 2000, 04:20 PM
#3
Sure open the file in binary mode.
Code:
Open "c:\myfile.dat" For Binary Access Read Write As #1
Good luck!
-
Apr 5th, 2000, 07:39 PM
#4
Thread Starter
Fanatic Member
Thanks...
kedaman and Joacim. 
All the best.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|