Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7500419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:10:42+00:00 2026-05-29T20:10:42+00:00

I have just written this code: EXl = (‘C:\\vd36e404.vdb’,’C:\\vd368c03.vdb’) x=0 for x in EXl:

  • 0

I have just written this code:

   EXl = ('C:\\vd36e404.vdb','C:\\vd368c03.vdb')
   x=0 
   for x in EXl:
      import os   
      filesize= os.path.getsize(x)
      print (filesize);

What I would like to do is this. I have a csv file which has in the first column the list of path I need to give to the above program, which should then give me as output the size of the path-file given by the csv file.

Does anyone know how to code that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T20:10:45+00:00Added an answer on May 29, 2026 at 8:10 pm

    I think this would fit you :

    http://docs.python.org/library/csv.html

    Look at this example :

    import csv
    spamReader = csv.reader(open('eggs.csv', 'rb'), delimiter=' ', quotechar='|')
    for row in spamReader:
        print ', '.join(row)
    
    Spam, Spam, Spam, Spam, Spam, Baked Beans
    Spam, Lovely Spam, Wonderful Spam
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just written some code, which as i was writing i thought, this
I have always written regexes like this <A HREF=([^]*) TARGET=_blank>([^<]*)</A> but I just learned
I have just been re-working an old bit of compiler-like code written using bison.
I have written a following code to get just the file name without extension
I hate code that looks like its been hacked together. I have just written
I have written this code, but it does not work. Can someone point out
I have written this code (this is a snippet) that doesn't seem to be
I have some terribly written ASP.NET code that is just not working right (go
I have this old-style non-PDO MySQL query (the code isn't tightened up, just to
I have just written and tested my first non-hobby WordPress plugin, under Xampp on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.