No announcement yet.

Read Text from .TXT file and print on screen

  • Filter
  • Time
  • Show
Clear All
new posts

  • Read Text from .TXT file and print on screen

    Hello, does anyone have a short bit of code to do this? I saw some earlier topics but they seemed to used some undefined commands. Is there any standard for this?

  • #2

    Undefined commands? Do you mean the topics you saw were for Picaso and you need a Goldelox equivalent?

    For Goldelox you would use media_ReadByte()

    Maybe have a look at the Visi StringsDemo


    • #3

      what does media_ReadByte() do?

      I do need a Goldelox equivalent, do you have any sample code? When I look in the STRINGSDEMO folder, I see no files.


      • #4

        media_ReadByte reads a byte from the uSD card, it works on Goldelox.

        Haven't you got the internal functions manual?

        Load the program, its in the Goldelox 4d-Visi folder, you don't open the .imgdata folder

        It includes, but run the demo first before you look in that .inc file


        • #5

          I do not see a PrintDiskGoldelox demo, nothing with that name in the 4D-VISI folder.

          I really just need the code to allow me to read from a .TXT file. Is this available in one particular file?


          • #6

            In the Goldelox 4d-Visi folder there is a sample program called StringsDemo.4dg inside that program is a routine by the name of

            You must, hopefully, know that Goldelox does not have file access, so all access to files is by accessing RAW disk, so there is no way you can read from a .txt file.

            That's why you need to look at the demo, so you can understand how data can live on a uSD and how you can acess it in Goldelox