iBicha
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2023
06:15 PM
I'm having trouble reading a file in a ComponentLibrary.
The file I want to read is in the ComponentLibrary. The code to read the file is also in the Lib.
Doing ReadAsciiFile("pkg:/config/some_file.json") results into an error.
Can component libraries not read from a file?
If this is actually a limitation, what other things can't a ComponentLibrary do?
1 Solution
Accepted Solutions
C-DP
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2023
07:24 PM
3 REPLIES 3
C-DP
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2023
07:24 PM
Use “libpkg:/path/to.json”
iBicha
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2023
07:04 AM
Re: Reading a file from a ComponentLibrary
Thank you. Is libpkg: also a read only volume similar to pkg:?
C-DP
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2023
06:55 PM
Re: Reading a file from a ComponentLibrary
I have not tested my self but I believe it is.