getting info(String) from file.



  • 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?



  • File.loadAsString()


Log in to reply
 

16
Online

1.5k
Users

4.6k
Topics

42.1k
Posts