TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: KEVIN SHEETZ
from: QUINTIN OLIVER
date: 1997-04-16 00:19:00
subject: File accessing...

Hello Kevin,
Nice to seeya again, if you wan't to access files in Basic here's some stuff:
let's say you wan't to open a file called 'name.txt' this is how:
OPEN "name.txt" FOR INPUT AS #1
INPUT #1, FIRSTLINE$
CLOSE #1
PRINT FIRSTLINE$
This is how to do it in MS Qbasic I hope you don't wan't it in Visual Basic
since I don't program in it.
Err how?
well this program opens a file called name.txt for INPUT this means the file
will be opened for reading data from it, if the file was opened for OUTPUT it
means the file opened for data input. The file must exist before it can be
opened.
There are also other ATT's for opening files like RANDON, etc.. should be in
online help or your Qbasic Programmers reference.
I hope this works for you, I had to do the code in a hurry but it should 
ork,
email me if you have any problems.
Seeya, Quin (short fot Quintin)
--- F.I.P.S./32 v0.95 Win95/NT
(2:250/121.9)
---------------
* Origin: Happiness is seeing your boss's face on a milk cartoon

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.