HISE Logo Forum
    • Categories
    • Register
    • Login

    getting info(String) from file.

    Scheduled Pinned Locked Moved General Questions
    2 Posts 2 Posters 273 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • marcLabM
      marcLab
      last edited by

      I know that we can use File.writeString() to write inside a file. But I'm wondering if there's a way to retrieve information from a File?

      inline function onbtnDirControl(component, value)
          {
              local expansionProps = Expansions.getProperties();
              local expName = expansionProps.Name;
              local expDir = FileSystem.getFolder(FileSystem.AppData).getChildFile("Expansions/" + expName + "/Samples" + "/LinkWindows" );
              
              if (expDir.isFile())
              {
                  Console.print(expDir.toString(FullPath));
                  lblSamplePath.set("text",expDir.toString(FullPath));
              }
           };
      
          Content.getComponent("btnDir").setControlCallback(onbtnDirControl);
      

      But here, instead of getting the actual path of the File, I want to get the information inside this file. LinkWindows is containing the path to the user sample folder created when installing the expansion.

      Any Ideas?

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

        File.loadAsString()

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 1
        • First post
          Last post

        50

        Online

        1.7k

        Users

        11.7k

        Topics

        101.8k

        Posts