# Importing the CSV file in Ignition Perspective

**URL:** <https://forum.inductiveautomation.com/t/importing-the-csv-file-in-ignition-perspective/65986>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [November 2, 2022, 10:21am UTC](https://forum.inductiveautomation.com/t/importing-the-csv-file-in-ignition-perspective/65986 "2022-11-02T10:21:41Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [November 2, 2022, 11:19am UTC](https://forum.inductiveautomation.com/t/importing-the-csv-file-in-ignition-perspective/65986/3 "2022-11-02T11:19:29Z")

</div>

From a Perspective session, this should be closer to what you're looking for.

> [@Perspective onFileReceived - CSV](https://forum.inductiveautomation.com/t/perspective-onfilereceived-csv/39893/3):
>
> Awesome - Felt I was close just couldn’t find what I needed. Should have asked sooner slight_smile FYI for future readers below was the updated script to make it work from perspective from StringIO import StringIO import csv fileContents = event.file.getString("UTF-8") reader = csv.DictReader(StringIO(fileContents)) for row in reader: system.perspective.print(row) Thanks again!

---

_[View the full topic](https://forum.inductiveautomation.com/t/importing-the-csv-file-in-ignition-perspective/65986)._
