Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.032 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'file)': 0.09; 'filename': 0.09; 'cc:addr:python-list': 0.11; 'be:': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'wed,': 0.18; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'lines': 0.31; 'file': 0.32; 'url:python': 0.33; 'received:google.com': 0.35; 'there': 0.35; 'skip:f 40': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'should': 0.36; 'pm,': 0.38; 'skip:& 20': 0.39; 'url:mail': 0.40; 'first': 0.61; 'to:addr:gmail.com': 0.65; '2015': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=VDiGkHm5edmctnGj8PkrOSUao4VJirB24SAidFqT7B0=; b=h420NuypIUrai5grCa8CkRd4496/i0JBwxPoJuh0xygVWGDjmaHpM18sxJF7m01LL7 I/4Jbic0aTPurwqMIi8441NiQmIe0SNAhUE76E4nSBQw3RQutx8hzFwmfnK1xXsPdLZu KNLcbi0WMDaW66/RLmalZXJufe4g8AFLmhS3DNZ9TClccXgSQFL8AnrZTsKEshmmpSyD e1EdLeFOmyR19ssn4uVluXFTO7gsShriy2TAEeHBwwEySGqCez7LiLLK8H3Cke8JD/eA jfQLCVohEtOCyuM6wLYeS78VUcB0qrLDp6zjW3p/6mADO1w6IYSt+naYfQQM3S9EjNeP vBPg== MIME-Version: 1.0 X-Received: by 10.112.139.36 with SMTP id qv4mr427353lbb.24.1430332946155; Wed, 29 Apr 2015 11:42:26 -0700 (PDT) In-Reply-To: References: <8b2bd328-08a6-4211-85c4-8d117d1aae1e@googlegroups.com> Date: Wed, 29 Apr 2015 13:42:26 -0500 Subject: Re: seek operation in python From: Billy Earney To: siva sankari R Cc: "python-list@python.org" Content-Type: multipart/alternative; boundary=089e012297042a902d0514e1572a X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1430332953 news.xs4all.nl 2954 [2001:888:2000:d::a6]:48266 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:89566 --089e012297042a902d0514e1572a Content-Type: text/plain; charset=UTF-8 if your filename is input.cpp, you first line of code should be: file=open("input*.cpp*","r") On Wed, Apr 29, 2015 at 1:26 PM, siva sankari R wrote: > There is a file named "input.cpp"(c++ file) that contains some 80 lines of > code. > -- > https://mail.python.org/mailman/listinfo/python-list > --089e012297042a902d0514e1572a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
if your filename is input.cpp, you first line of code shou= ld be:

file=3Dopen("input.cpp","r")

On Wed, Apr 2= 9, 2015 at 1:26 PM, siva sankari R <buddingrose11@gmail.com><= /span> wrote:
There is a file named "= ;input.cpp"(c++ file) that contains some 80 lines of code.
--
https://mail.python.org/mailman/listinfo/python-list

--089e012297042a902d0514e1572a--