infinitysquadron
Programmer
I'm trying to make a program where it takes information from the date and time, does a few calculations and then prints them out into a file. The proplem is, the file I'm printing to is in a code that an other program uses to run. The code uses quotation marks (" in the code, and I need to use the quotes to tell QBASIC what to write. The two sets of quotes (the ones QBASIC is using and the ones that the code I'm printing uses) conflict, and QBASIC starts to think part of what I'm writing (after the first quote) is part of the QBASIC syntax, and gives me tons of errors.
Example:
OPEN "Somefile.extention" FOR APPEND AS #1
PRINT #1, "code"more code"code"
CLOSE #1
The red quotes are what QBASIC uses, and the green ones are what the code uses. But QBASIC thinks that the first two quotes are what it's supposed to read, and then thinks the rest of the code is QBASIC code, and it's not. Can I get around this problem???
Example:
OPEN "Somefile.extention" FOR APPEND AS #1
PRINT #1, "code"more code"code"
CLOSE #1
The red quotes are what QBASIC uses, and the green ones are what the code uses. But QBASIC thinks that the first two quotes are what it's supposed to read, and then thinks the rest of the code is QBASIC code, and it's not. Can I get around this problem???