Post Reply 
How to read a text file in the App directory?
05-08-2023, 09:00 PM (This post was last modified: 05-08-2023 09:04 PM by Thomas_Sch.)
Post: #4
RE: How to read a text file in the App directory?
(05-08-2023 08:39 PM)mchris Wrote:  
(05-08-2023 07:44 PM)Thomas_Sch Wrote:  Use AFiles("name")

Each HP Prime app can have any number of files associated with it. These files are sent with the app. For example, if there is a file named icon.png associated with the app, then this file is used for the app icon in the Application Library.
AFiles returns the list of all these files.
AFiles("name") returns the contents of the file with the given name.


(user manual, pg. 658 Chapter 29 Programming in HP PPL)

filevar:=AFiles("FILE.txt")
Error: Invalid input

The filevar created but contains the number 0

Sugestion: Do a search in the forum for "Afiles",
e.g. https://www.hpmuseum.org/forum/thread-77...ght=AFiles
or https://www.hpmuseum.org/forum/search.ph...order=desc
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How to read a text file in the App directory? - Thomas_Sch - 05-08-2023 09:00 PM



User(s) browsing this thread: