Example of using a file variable
- Updated: 2023/07/28
Example of using a file variable
Learn to use file variables in bots. There can be instances where a bot needs to access a file multiple times based on the task it performs. You can store file references in file variables and use the file variables in bots instead of adding direct file paths.
- Uses a file variable to access a CSV file.
- Opens and reads data from the file using the file variable.
- Retrieves and displays the address of an employee as a message.
Roy, Doe, 120 Jefferson St., Riverside, IT_PROG
Shaun, McGinnis, 220 Hobo Av., Rocky Point, FI_ACCOUNT
John, Mark, 124 Jefferson St., Riverside, SA_HEAD
Sophie, Tyler, 7300 Terrace "At the Plaza" Rd., Wells, IT_PROG
Stephen, Mathew, 22 Theressia St., Troy, IT_PROG
Anne, Ross, 9th St., Lexington, IT_PROG