473,404 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

file.close()

i'm curious to know how others handle the closing of files. i seem to
always end up with this pattern even though i rarely see others do it.

f1 = file('file1')
try:
# process f1
finally:
f1.close()

which explicitly closes f1

or for multiple files:

f1 = file('file1')
try:
f2 = file('file2')
try:
# process f1 & f2
finally:
f2.close()
finally:
f1.close()

which explicitly closes f1 & f2
any exceptions opening f1 or f2 is handled outside of this structure or is
allowed to fall out of the program. i'm aware that files will automatically
be closed when the process exits. i'm just curious how others do this for
small scripts and larger programs. is what i'm doing is overkill?

thanks,

bryan
Jul 18 '05 #1
22 31238
Bryan wrote:
which explicitly closes f1 & f2
any exceptions opening f1 or f2 is handled outside of this structure
or is
allowed to fall out of the program. i'm aware that files will
automatically
be closed when the process exits. i'm just curious how others do this
for
small scripts and larger programs. is what i'm doing is overkill?


No, not at all; it's safe and portable. Python the language does not
specify when objects get reclaimed, although CPython the implementation
does it promptly. Use of external resources -- which should be released
as soon as you're done with them -- are best done in try/finally
clauses.

--
Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
__ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/ \ It is fatal to enter any war without the will to win it.
\__/ Douglas MacArthur
Jul 18 '05 #2
On Wed, 23 Jul 2003 20:29:27 -0700, Erik Max Francis wrote:
Bryan wrote:
is what i'm doing is overkill?


Use of external resources -- which should be released as soon as
you're done with them -- are best done in try/finally clauses.


It seems that nesting the 'try' clauses doesn't scale well. What if
fifty files are opened? Must the nesting level of the 'try' clauses be
fifty also, to close them promptly?

--
\ "God forbid that any book should be banned. The practice is as |
`\ indefensible as infanticide." -- Dame Rebecca West |
_o__) |
http://bignose.squidly.org/ 9CFE12B0 791A4267 887F520C B7AC2E51 BD41714B
Jul 18 '05 #3
Ben Finney wrote:
It seems that nesting the 'try' clauses doesn't scale well. What if
fifty files are opened? Must the nesting level of the 'try' clauses
be
fifty also, to close them promptly?


If you're manipulating fifty files in one block, presumably you're doing
so in a uniform way:

allFiles = [...]
try:
...
finally:
for eachFile in allFiles:
eachFile.close()

--
Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
__ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/ \ Man is a hating rather than a loving animal.
\__/ Rebecca West
Jul 18 '05 #4
Ben Finney wrote:
On Wed, 23 Jul 2003 20:29:27 -0700, Erik Max Francis wrote:
Bryan wrote:
is what i'm doing is overkill?


Use of external resources -- which should be released as soon as
you're done with them -- are best done in try/finally clauses.


It seems that nesting the 'try' clauses doesn't scale well. What if
fifty files are opened? Must the nesting level of the 'try' clauses be
fifty also, to close them promptly?


If you need 50 open files, you almost certainly want to have a way of
organizing them. Probably they'll be in a list or dictionary. So, if
they're in a list, for example, you can do this:
filelist = []
try:
filelist.append(open(filename[0]))
filelist.append(open(filename[1]))
...
do_something(filelist)
finally:
for f in filelist:
f.close()
--
CARL BANKS
Jul 18 '05 #5
Bryan (original poster) wrote:
f1 = file('file1')
try:
f2 = file('file2')
try:
# process f1 & f2
finally:
f2.close()
finally:
f1.close()

On Wed, 23 Jul 2003 21:12:34 -0700, Erik Max Francis wrote: Ben Finney wrote:
It seems that nesting the 'try' clauses doesn't scale well. What if
fifty files are opened? Must the nesting level of the 'try' clauses
be fifty also, to close them promptly?


If you're manipulating fifty files in one block, presumably you're
doing so in a uniform way:

allFiles = [...]
try:
...
finally:
for eachFile in allFiles:
eachFile.close()


This doesn't match Bryan's nested structure above, which you blessed as
not "overkill" (in his words). It was this that I considered a
poorly-scaling structure, or "overkill" since only one 'try' block is
required. Do you disagree?

--
\ "Too many Indians spoil the golden egg." -- Sir Joh |
`\ Bjelke-Petersen |
_o__) |
http://bignose.squidly.org/ 9CFE12B0 791A4267 887F520C B7AC2E51 BD41714B
Jul 18 '05 #6
Ben Finney wrote:
This doesn't match Bryan's nested structure above, which you blessed
as
not "overkill" (in his words). It was this that I considered a
poorly-scaling structure, or "overkill" since only one 'try' block is
required. Do you disagree?


It uses try/finally to secure the closing of many files in a timely
manner. In that sense, it certainly fits the pattern. It doesn't have
the same nested pattern, but try/finally isn't at issue here. If you
had code which opened 50 files and looked like:

fileOne = file(...)
fileTwo = file(...)
fileThree = file(...)
...
fileFortyNine = file(...)
fileFifty = file(...)

I would say you are doing something wrong. A more systematic handling
of many, many files is indicated whether or not you're using the
try/finally idiom to ensure files get closed in a timely manner.

--
Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
__ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/ \ Together we can take this one day at a time
\__/ Sweetbox
Jul 18 '05 #7
>
If you need 50 open files, you almost certainly want to have a way of
organizing them. Probably they'll be in a list or dictionary. So, if
they're in a list, for example, you can do this:
filelist = []
try:
filelist.append(open(filename[0]))
filelist.append(open(filename[1]))
...
do_something(filelist)
finally:
for f in filelist:
f.close()

erik, carl... thanks... this is exactly what i was looking for

bryan
Jul 18 '05 #8
On Thu, 24 Jul 2003 05:20:15 GMT, Bryan wrote:
filelist = []
try:
filelist.append(open(filename[0]))
filelist.append(open(filename[1]))
...
do_something(filelist)
finally:
for f in filelist:
f.close()


erik, carl... thanks... this is exactly what i was looking for


The only substantial difference I see between this and what you
originally posted, is that there is only one 'try...finally' block for
all the file open/close operations. Is this what you were wanting
clarified?

--
\ "I spent all my money on a FAX machine. Now I can only FAX |
`\ collect." -- Steven Wright |
_o__) |
http://bignose.squidly.org/ 9CFE12B0 791A4267 887F520C B7AC2E51 BD41714B
Jul 18 '05 #9

"Ben Finney" <bi****************@and-benfinney-does-too.id.au> wrote in
message news:sl*******************************@iris.polar. local...
On Thu, 24 Jul 2003 05:20:15 GMT, Bryan wrote:
filelist = []
try:
filelist.append(open(filename[0]))
filelist.append(open(filename[1]))
...
do_something(filelist)
finally:
for f in filelist:
f.close()


erik, carl... thanks... this is exactly what i was looking for


The only substantial difference I see between this and what you
originally posted, is that there is only one 'try...finally' block for
all the file open/close operations. Is this what you were wanting
clarified?


well, it wasn't exactly clarification as much as seeing another more
scalable solution. i know a lot of people don't explicitly close files in
python, but i always do even for small scripts.

thanks again,

bryan
Jul 18 '05 #10
On Wed, 23 Jul 2003 22:19:07 -0700, Erik Max Francis wrote:
Ben Finney wrote:
This doesn't match Bryan's nested structure above, which you blessed
as not "overkill" (in his words).

It doesn't have the same nested pattern, but try/finally isn't at
issue here.


Judging by Bryan's responses elsewhere in this thread, the multiple
nested 'try...finally' is indeed what he was asking about. The question
seems to be answered now.

--
\ "Those who will not reason, are bigots, those who cannot, are |
`\ fools, and those who dare not, are slaves." -- "Lord" George |
_o__) Gordon Noel Byron |
http://bignose.squidly.org/ 9CFE12B0 791A4267 887F520C B7AC2E51 BD41714B
Jul 18 '05 #11
[Bryan]
I'm curious to know how others handle the closing of files. [...] I'm
aware that files will automatically be closed when the process exits.


For one, I systematically avoid cluttering my code with unneeded `close'.
The advantages are simplicity and legibility, both utterly important to me.

However, I do understand that if I ever have to move a Python script
to Jython, I will have to revise my scripts for adding the clutter I am
sparing today. I'm quite accepting to do that revision if this occurs.
Until then, I prefer keeping my scripts as neat as possible.

For me, explicitely closing a file, for which the only reference is about
to disappear through function exiting, would be very similar to using
`del' on any variable I happened to use in that function: gross overkill...

The only reason to call `close' explicitly is when there is a need to close
prematurely. Absolutely no doubt that such needs exist at times. But
closing all the time "just in case" is symptomatic of unsure programming.
Or else, it is using Python while still thinking in other languages.

--
François Pinard http://www.iro.umontreal.ca/~pinard

Jul 18 '05 #12

"Francois Pinard" <pi****@iro.umontreal.ca> wrote in message
news:ma**********************************@python.o rg...
[Bryan]
I'm curious to know how others handle the closing of files. [...] I'm
aware that files will automatically be closed when the process exits.
For one, I systematically avoid cluttering my code with unneeded `close'.
The advantages are simplicity and legibility, both utterly important to

me.
However, I do understand that if I ever have to move a Python script
to Jython, I will have to revise my scripts for adding the clutter I am
sparing today. I'm quite accepting to do that revision if this occurs.
Until then, I prefer keeping my scripts as neat as possible.

For me, explicitely closing a file, for which the only reference is about
to disappear through function exiting, would be very similar to using
`del' on any variable I happened to use in that function: gross overkill...
The only reason to call `close' explicitly is when there is a need to close prematurely. Absolutely no doubt that such needs exist at times. But
closing all the time "just in case" is symptomatic of unsure programming.
Or else, it is using Python while still thinking in other languages.

--
François Pinard http://www.iro.umontreal.ca/~pinard


you are correct this is so awesome... at least for me it is... now i remove
a lot of my clutter too :) i just did some tests on windows by trying to
delete file1 at the command prompt when raw_input is called.

f = file('file1')
raw_input('pause')

### the file is NOT closed
file('file1')
raw_input('pause')

### the file IS closed
f = file('file1')
del f
raw_input('pause')

### the file IS closed
def foo():
f = file('file1')

foo()
raw_input('pause')

### the file IS closed

can you explain to me how the file gets closed? i'm sure that garbage
collection hasn't happed at the point that i call raw_input. it must have
something to do with the reference count of the file object. does python
immediately call close for you when the reference count goes to zero? i
want the dirty details...

thanks,

bryan
Jul 18 '05 #13

"Francois Pinard" <pi****@iro.umontreal.ca> schrieb im Newsbeitrag
news:ma**********************************@python.o rg...
[Bryan]
I'm curious to know how others handle the closing of files. [...] I'm
aware that files will automatically be closed when the process exits.
For one, I systematically avoid cluttering my code with unneeded `close'.
The advantages are simplicity and legibility, both utterly important to

me.
However, I do understand that if I ever have to move a Python script
to Jython, I will have to revise my scripts for adding the clutter I am
sparing today. I'm quite accepting to do that revision if this occurs.
Until then, I prefer keeping my scripts as neat as possible.

For me, explicitely closing a file, for which the only reference is about
to disappear through function exiting, would be very similar to using
`del' on any variable I happened to use in that function: gross overkill...
The only reason to call `close' explicitly is when there is a need to close prematurely. Absolutely no doubt that such needs exist at times. But
closing all the time "just in case" is symptomatic of unsure programming.
Or else, it is using Python while still thinking in other languages.


fire up your python and type: "import this" read the output and rethink your
codint techniques

Ciao Ulrich
Jul 18 '05 #14
Bengt Richter wrote:
1) Is f.done() really necessary? I.e., doesn't an explicit del f take
care of it
if the object has been coded with a __del__ method? I.e., the idea
was to get
the effect of CPython's immediate effective del on ref count going
to zero, right?


It wouldn't if there were circular references at that point. If you're
going to have some kind of `with' structure that constraints lifetimes,
I'd think you'd probably want something more concrete than just object
deletion; you'd want to make sure a "Stop whatever you were doing now"
method were present and called. But maybe that really depends on the
primary thing that the `with' construct would be used for.

--
Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
__ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/ \ Love is when you wake up in the morning and have a big smile.
\__/ Anggun
Jul 18 '05 #15
Francois Pinard wrote:
For one, I systematically avoid cluttering my code with unneeded `close'.


What happens if close fails during GC? Will it still raise an
exception? If so, the exception could happen at an unfortunate place in
the code.

Um. Explicit close does raise an exception if it fails, right?

--
Hallvard
Jul 18 '05 #16
bo**@oz.net (Bengt Richter) writes:
"done" here is a generic method that gets called on exiting a "with"
block. First reaction == +1, but some questions...

1) Is f.done() really necessary? I.e., doesn't an explicit del f
take care of it if the object has been coded with a __del__
method? I.e., the idea was to get the effect of CPython's
immediate effective del on ref count going to zero, right?


The ref count might not be zero. Something inside the "with" block
might make a new reference and leave it around.
2) how about with two files (or other multiple resources)?

with f1,f2 = file('f1'), file('f2'):
[do stuff with f1 & f2]

What is the canonical expansion?
I think f1.done and f2.done should both get called.
Also, what about the attribute version, i.e.,

ob.f = file(frob)
try:
[do stuff with ob.f]
finally:
del ob.f # calls f.__del__, which calls/does f.close()

I.e., ob.f = something could raise an exception (e.g., a read-only property)
*after* file(frob) has succeeded. So I guess the easiest would be to limit
the left hand side to plain names...


The assignment should be inside the try. If I had it on the outside
before, that was an error.
Jul 18 '05 #17
On 25 Jul 2003 13:35:49 -0700, Paul Rubin <http://ph****@NOSPAM.invalid> wrote:
bo**@oz.net (Bengt Richter) writes:
>"done" here is a generic method that gets called on exiting a "with"
>block. First reaction == +1, but some questions...

1) Is f.done() really necessary? I.e., doesn't an explicit del f
take care of it if the object has been coded with a __del__
method? I.e., the idea was to get the effect of CPython's
immediate effective del on ref count going to zero, right?


The ref count might not be zero. Something inside the "with" block
might make a new reference and leave it around.

Aha. In that case, is the del just a courtesy default action?
2) how about with two files (or other multiple resources)?

with f1,f2 = file('f1'), file('f2'):
[do stuff with f1 & f2]

What is the canonical expansion?


I think f1.done and f2.done should both get called.

Consistently ;-)
Also, what about the attribute version, i.e.,

ob.f = file(frob)
try:
[do stuff with ob.f]
finally:
del ob.f # calls f.__del__, which calls/does f.close()

I.e., ob.f = something could raise an exception (e.g., a read-only property)
*after* file(frob) has succeeded. So I guess the easiest would be to limit
the left hand side to plain names...


The assignment should be inside the try. If I had it on the outside
before, that was an error.


Really? Don't you want a failing f = file(frob) exception to skip the finally,
since f might not even be bound to anything in that case?

The trouble I was pointing to is having two possible causes for exception, and only
one of them being of relevance to the file resource.

Maybe if you wanted to go to the trouble, it could be split something like

with ob.f = file(frob):
[do stuff with ob.f]

becoming

_tmp = file(frob)
try:
ob.f = _tmp
[ do stuff with ob.f ]
finally:
_tmp.done()
del _tmp
del ob.f

Not sure about the order. Plain ob.f.done() would not guarantee a call to _tmp.done(),
since ob could refuse to produce f, and f could be a wrapper produced during ob.f = _tmp,
and it might not have a __del__ method etc etc. _tmp is just for some internal temp binding.

Regards,
Bengt Richter
Jul 18 '05 #18
Hallvard B Furuseth fed this fish to the penguins on Friday 25 July
2003 12:51 pm:

Um. Explicit close does raise an exception if it fails, right?

[wulfraed@beastie wulfraed]$ python
Python 2.2 (#1, Nov 5 2002, 15:43:24)
[GCC 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)] on linux-i386
Type "help", "copyright", "credits" or "license" for more information.
f = file("t.t","w")
f.close()
f.close()
f <closed file 't.t', mode 'w' at 0x809dc88> del f
f.close() Traceback (most recent call last):
File "<stdin>", line 1, in ?
NameError: name 'f' is not defined


Looks like it doesn't care... As long as the file /had/ been opened
first (doesn't look like the interactive interpreter collected f until
the del either).
-- ================================================== ============ <
wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
================================================== ============ <
Bestiaria Home Page: http://www.beastie.dm.net/ <
Home Page: http://www.dm.net/~wulfraed/ <


Jul 18 '05 #19
Dennis Lee Bieber wrote:
Hallvard B Furuseth fed this fish to the penguins on Friday 25 July
2003 12:51 pm:
Um. Explicit close does raise an exception if it fails, right?

... Looks like it doesn't care... As long as the file /had/ been
opened
first (doesn't look like the interactive interpreter collected f until
the del either).


I don't think you've demonstrated that; all you've shown is that builtin
Python file objects make file closing idempotent. You haven't
demonstrated a case where there actually is an I/O error that occurs
when .close gets called. In particular, I _really_ don't know what you
meant to show with this snippet, as it really has nothing to do with
files at all:
f <closed file 't.t', mode 'w' at 0x809dc88> del f
f.close()

Traceback (most recent call last):
File "<stdin>", line 1, in ?
NameError: name 'f' is not defined


--
Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
__ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/ \ He who knows how to be poor knows everything.
\__/ Jules Michelet
Jul 18 '05 #20
On Sun, Jul 27, 2003 at 04:31:19PM -0700, Erik Max Francis wrote:
You haven't
demonstrated a case where there actually is an I/O error that occurs
when .close gets called.


What makes you believe that a Python file object's "close" can never error?
"close" corresponds to the fclose() function of the C standard library,
and the manpages have plenty to say on the subject (see below).

I just created a small filesystem (1000 1k blocks, over half of which
was used by filesystem overhead) and got Python to do this:
f = open("/mnt/tmp/x", "w")
f.write("x" * (453*1024+511))
f.close() Traceback (most recent call last):
File "<stdin>", line 1, in ?
IOError: [Errno 28] No space left on device

Curiously enough, this doesn't even print the 'Exception in __del__ ignored' message: f = open("/mnt/tmp/x", "w")
f.write("x" * (453*1024+511))
del f

even though the failed stdio fclose must still have been called.

stdio buffering kept the last few bytes of the f.write() from actually
being sent to the disk, but the f.close() call must dump them to the disk,
at which time the "disk full" condition is actually seen. While I had
to contrive this situation for this message, it's exactly the kind of
thing that will to happen to you when your software is at the customer's
site and you've left for a month in rural Honduras where there aren't
any easily-accessible phones, let alone easy internet access.

Jeff

[from `man fclose']
RETURN VALUE
Upon successful completion 0 is returned. Otherwise, EOF is returned
and the global variable errno is set to indicate the error. In either
case any further access (including another call to fclose()) to the
stream results in undefined behaviour.
[...]
The fclose function may also fail and set errno for any of the errors
specified for the routines close(2), write(2) or fflush(3).

[from `man close']
ERRORS
EBADF fd isn’t a valid open file descriptor.

EINTR The close() call was interrupted by a signal.

EIO An I/O error occurred.

[from `man write']
ERRORS
EBADF fd is not a valid file descriptor or is not open for writing.

EINVAL fd is attached to an object which is unsuitable for writing.

EFAULT buf is outside your accessible address space.

EFBIG An attempt was made to write a file that exceeds the implementa-
tion-defined maximum file size or the process’ filesize limit,
or to write at a position past than the maximum allowed offset.

EPIPE fd is connected to a pipe or socket whose reading end is closed.
When this happens the writing process will also receive aSIG-
PIPE signal. (Thus, the write return value is seen only ifthe
program catches, blocks or ignores this signal.)

EAGAIN Non-blocking I/O has been selected using O_NONBLOCK and the
write would block.

EINTR The call was interrupted by a signal before any data was writ-
ten.

ENOSPC The device containing the file referred to by fd has no room for
the data.

EIO A low-level I/O error occurred while modifying the inode.

Other errors may occur, depending on the object connected to fd.

[from `man fflush']
ERRORS
EBADF Stream is not an open stream, or is not open for writing.

The function fflush may also fail and set errno for any of the errors
specified for the routine write(2).

Jul 18 '05 #21
Jeff Epler wrote:
On Sun, Jul 27, 2003 at 04:31:19PM -0700, Erik Max Francis wrote:
You haven't
demonstrated a case where there actually is an I/O error that occurs
when .close gets called.


What makes you believe that a Python file object's "close" can never
error?
"close" corresponds to the fclose() function of the C standard
library,
and the manpages have plenty to say on the subject (see below).


I never made any such claim. I was simply countering someone _else_
making that claim, who used a Python session snippet to try to
demonstrate it, that they had demonstrated no such thing. He simply
called the close method twice, which had gave no indication of what he
was looking for.

--
Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
__ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/ \ What do women want?
\__/ Sigmund Freud
Jul 18 '05 #22
Erik Max Francis fed this fish to the penguins on Sunday 27 July 2003
08:24 pm:
demonstrate it, that they had demonstrated no such thing. He simply
called the close method twice, which had gave no indication of what he
was looking for.

Which I will blame upon my long history on a system/language where
closing a closed file /does/ generate an error...

-- ================================================== ============ <
wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
================================================== ============ <
Bestiaria Home Page: http://www.beastie.dm.net/ <
Home Page: http://www.dm.net/~wulfraed/ <


Jul 18 '05 #23

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: John Marshall | last post by:
Hi, Does anyone see a problem with doing: data = file("tata").read() Each time this is done, I see a new file descriptor allocated (Linux) but not released. 1) Will there ever be a point...
0
by: Peter A. Schott | last post by:
If I want to verify that a file has finished writing before deleting the remote file, what would be the best method? Current code on Python 2.4: #filename - remote FTP server File Name...
7
by: Anbu | last post by:
Hi, I want to load contents of a remote HTML file and to display it on the ASP ..NET Web Page. The remote HTML file is not under any virtual folder and the content & location may vary for each...
2
by: Bruce Wiebe | last post by:
hi all im having a problem accessing a text file on my hard disk after ive created it and added some text to it it would appear that the file is still locked. What happens is this i have...
1
by: LeatherGator | last post by:
I have created a long string and want to save it to a file. I create the file fine, but there are two additional characters at the end when I view it in a hex editor "OD" and "OA". Here is the...
18
by: panig | last post by:
how the program knows when a file is finsihed, mmm?
1
by: halimunan | last post by:
hi all, i`m doing an application to zip a file. this require system.io.file but i`m having problem as it cannot run because the error above.. do i need to close the File.xxx as the...
0
by: Sergei Shelukhin | last post by:
Hi. I am writing an app that updates a certain windows service that is had previously installed. It stops the service, rewrites the file, and starts it again. On some machines, however, even...
1
natie
by: natie | last post by:
I have the following code which is a method that displays the content of a file with the name "File" public void DisplayAll()throws IOException { try {DataInputStream F =...
0
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.