How do i import a 2000 character text file as a single string in QBasic? I am trying to use
OPEN "a.txt" For Input as #1
INPUT #1, a$
but it appends it to about 500 characters.
Any help is much appreciated.
Strings
- coma8coma1
- Veteran
- Posts: 100
- Joined: Sat Dec 08, 2007 5:29 pm
- Location: Maryland, USA
hmm i've never used input$ before...angros47 wrote:Use input$
but i found this http://www.qb64.net/wiki/index.php?titl ... statement) and it seems simple enough. you can read a specific number of bytes at a time.
-,8
- burger2227
- Veteran
- Posts: 2466
- Joined: Mon Aug 21, 2006 12:40 am
- Location: Pittsburgh, PA
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0