# Showing file position with FasterCSV

**URL:** <https://www.ruby-forum.com/t/showing-file-position-with-fastercsv/154289>\
**Category:** Ruby\
**Created:** [November 27, 2008, 11:59am UTC](https://www.ruby-forum.com/t/showing-file-position-with-fastercsv/154289 "2008-11-27T11:59:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sa125](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b4bc9f/32.png) [@sa125](https://www.ruby-forum.com/u/sa125)\
**Post date:** [November 27, 2008, 11:59am UTC](https://www.ruby-forum.com/t/showing-file-position-with-fastercsv/154289/1 "2008-11-27T11:59:33Z")

</div>

Hi -

I’m trying to get the file position with FasterCSV to show progress:

csv = FasterCSV.open(path\_to\_file, “r”)  
file\_size = File.size(path\_to\_file)

for row in csv  
position = csv.tell # this only returns 0…

# do stuff…

end

I only get 0 using csv.tell or csv.pos – any idea what I’m doing wrong  
or how to accomplish what I’m trying to?

Thanks!

---

<div class="post-metadata">

**Author:** ![sa125](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b4bc9f/32.png) [@sa125](https://www.ruby-forum.com/u/sa125)\
**Post date:** [November 27, 2008, 1:26pm UTC](https://www.ruby-forum.com/t/showing-file-position-with-fastercsv/154289/2 "2008-11-27T13:26:10Z")

</div>

This ends up working, my bad.
