Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8000

opening a file

From Tim Hanson <tjhanson@yahoo.com>
Subject opening a file
Date 2011-06-19 23:00 -0700
Newsgroups comp.lang.python
Message-ID <mailman.170.1308550055.1164.python-list@python.org> (permalink)

Show all headers | View raw


Using linux and Python 2.6, learning how to work with files from a Windows 
oriented textbook:

This works:
infile=open('/foo/bar/prog/py_modules/this_is_a_test','r')

This doesn't:
infile=open('~/prog/py_modules/this_is_a_test','r')

Can't I work with files using Unix expressions?

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

opening a file Tim Hanson <tjhanson@yahoo.com> - 2011-06-19 23:00 -0700
  Re: opening a file Nobody <nobody@nowhere.com> - 2011-06-20 11:01 +0100

csiph-web