Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read a text and attribute it to a variable
#1
Code: (Select All)

x=freefile
open "c:\test.bas" for input as #x
line input #x, j$
close
? j$


Good morning or good evening or even good afternoon...

The answer to my question will certainly be simple 'Cause I'm slipping away Something obvious, but at the moment I can't figure out where the error is. Sometimes I get lost in a glass of water...

How can I turn j$ - into a string such that it can give me the result of p$ ?

Thank you!

Code: (Select All)

p$ = "QB64 Phoenix "+CHR$(138)+" (is) beatiful"
? p$



Attached Files
.bas   test.bas (Size: 42 bytes / Downloads: 34)
Reply


Messages In This Thread
Read a text and attribute it to a variable - by krovit - 11-24-2023, 08:34 AM



Users browsing this thread: 5 Guest(s)