by: Shu-Hsien Sheu |
last post by:
Hi,
Does the seek method would close the file object after using a for loop?
My program looks like this:
f = open('somefile', 'r')
for lines in f:
some operations
f.seek(0)
|
by: Amy G |
last post by:
"Peter Otten" <__peter__@web.de> wrote in message
news:btjbot$f56$00$1@news.t-online.com...
> You can open the file in "r+" mode and then f_vm.seek(0) before writing.
> However, from the above...
|
by: Derrick |
last post by:
I'm writing a home grown csv text file search, have sorted "id" in the first
"column". Other info after that in the "row". I seek half way thru the
file, get to a row boundry, determine "id" that...
|
by: Harry J. Smith |
last post by:
In the code below the two lines marked with ????????????????? do not work
properly.
The line:
inCF.BaseStream.Seek(0, SeekOrigin.Begin); // rewind inCF to
beginning of the file...
|
by: Tiger |
last post by:
We can use seek() in the FileStream class,as we know.
But I found that seek() is not work correctly in StreamReader.
Who can tell me how to use seek() correctly in StreamReader?
thanks a lot!
I...
|
by: ataanis |
last post by:
I just realized the SEEK method has the same problem, from what I
understand, it sets the file pointer to the beginning of the file, and
can't be changed!!! I need a way to set the streamreader to...
|
by: mhearne808[insert-at-sign-here]gmail[insert-dot-he |
last post by:
I'm having a problem with the File object's seek() method.
Specifically, I cannot use it to seek to a location in a binary file
that is greater than 2^31 (2147483648). This seems unnecessarily...
|
by: DR |
last post by:
When using System.IO.FileStream, I write 8 bytes, then seek to the start of
the file, does the 8 bytes get flushed on seek and the buffer become a
readbuffer at that point instead of being a write...
|
by: Anthony Jones |
last post by:
"DR" <softwareengineer98037@yahoo.comwrote in message
news:OZoyDzR8IHA.1200@TK2MSFTNGP04.phx.gbl...
of
A simple experiment in .NET 2.0 and Windows XP shows that it does appear to
flush on the...
|
by: justabeagle |
last post by:
In this code, I write two ints to a binary file using Serialization. What I want to do is after writing them, read in only the second int. I should be able to just seek to 4 bytes past the beginning...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|