473,387 Members | 1,575 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,387 software developers and data experts.

im facing problem with fread()??

Hi ,
i am writing a simple prgm to read a .txt file then store the contents
into the array...
program as follows:
--------------------------
#include<stdio.h>

int main()
{
FILE *fp1;
int buf[5];
int num,i;

fp1=fopen("triangle.txt","r");
if(fp1 == NULL)
{
printf("file cant be opend");
exit(0);
}

num=fread(buf,sizeof(int),5,fp1);
printf("num of elements read =%d\n",num);

for(i=0;i<5;i++)
printf("%d\n",buf[i]);
return 0;
}

------------------
i am getting no.of elements read as 0,but file is openable...
the elements as junk numbers...

can anybody tell me wat is the problem in doing this ..????
is it that i m using fread wrongly or it behaves abnoramlly???

TIA
Regards,
Rajshekhar

Nov 15 '05 #1
22 1836
The file triangle.txt must be empty that's why it is returning 0 number
of elements and junk value there on
Rajshekhar wrote:
Hi ,
i am writing a simple prgm to read a .txt file then store the contents
into the array...
program as follows:
--------------------------
#include<stdio.h>

int main()
{
FILE *fp1;
int buf[5];
int num,i;

fp1=fopen("triangle.txt","r");
if(fp1 == NULL)
{
printf("file cant be opend");
exit(0);
}

num=fread(buf,sizeof(int),5,fp1);
printf("num of elements read =%d\n",num);

for(i=0;i<5;i++)
printf("%d\n",buf[i]);
return 0;
}

------------------
i am getting no.of elements read as 0,but file is openable...
the elements as junk numbers...

can anybody tell me wat is the problem in doing this ..????
is it that i m using fread wrongly or it behaves abnoramlly???

TIA
Regards,
Rajshekhar


Nov 15 '05 #2
no its not empty ....!!
i read the contents of it using,,,,,getc & printed them using putc

~Rajshekhar

Nov 15 '05 #3

Rajshekhar wrote:
Hi ,
i am writing a simple prgm to read a .txt file then store the contents
into the array... Please post the contents of triangle.txt.then someone can help you.
If triangle.txt is a binary file then try rb instead of r in fopen.
program as follows:
--------------------------
#include<stdio.h>

int main()
{
FILE *fp1;
int buf[5];
int num,i;

fp1=fopen("triangle.txt","r");
if(fp1 == NULL)
{
printf("file cant be opend");
exit(0);
}

num=fread(buf,sizeof(int),5,fp1);
printf("num of elements read =%d\n",num);

for(i=0;i<5;i++)
printf("%d\n",buf[i]);
return 0;
}

------------------
i am getting no.of elements read as 0,but file is openable...
the elements as junk numbers...

can anybody tell me wat is the problem in doing this ..????
is it that i m using fread wrongly or it behaves abnoramlly???

TIA
Regards,
Rajshekhar


Nov 15 '05 #4
hi
the file triangle.txt contents are...
6 6 4

thats it .....
i dont think this file is binary file ..!!!

Nov 15 '05 #5
On 24 Aug 2005 03:30:51 -0700,
ma*******@gmail.com <ma*******@gmail.com> wrote:


Rajshekhar wrote:
Hi ,
i am writing a simple prgm to read a .txt file then store the contents
into the array...

Please post the contents of triangle.txt.then someone can help you.
If triangle.txt is a binary file then try rb instead of r in fopen.


The way fread() in program is used strongly suggests that the file has
to be binary. A text file is better read using fscanf(), or a combination
of fgets() and sscanf(), or som variant of getc()/getchar().

Villy
Nov 15 '05 #6
On 24 Aug 2005 03:34:16 -0700,
Rajshekhar <ra*********@gmail.com> wrote:

hi
the file triangle.txt contents are...
6 6 4

thats it .....
i dont think this file is binary file ..!!!

If sizeof(int) on your system is greater than the total number of bytes
in the input file there are not enough data for even the first element,
and thus you read zero elements.

Villy
Nov 15 '05 #7

Rajshekhar wrote:
hi
the file triangle.txt contents are...
6 6 4

thats it .....
i dont think this file is binary file ..!!!

No,you are wrong!That depends on how you treat it!If you want to open
is as a binary file,it is a binary file!Text files are similar.

Nov 15 '05 #8
Rajshekhar wrote:
i am writing a simple prgm to read a .txt file
if it's a text file use fgets() rather than fread()

then store the contents
into the array...
program as follows:
--------------------------
#include<stdio.h>
#include <stdio.h>

int main()
int main (void)
{
FILE *fp1;
int buf[5];
int num,i;

fp1=fopen("triangle.txt","r");
if(fp1 == NULL)
{
printf("file cant be opend");
exit(0);
}

num=fread(buf,sizeof(int),5,fp1);
printf("num of elements read =%d\n",num);

for(i=0;i<5;i++)
printf("%d\n",buf[i]);
here we have a fundamental misconception. Lets suppose your file looks
like this:
3 4 5

I'm guessing your program wants to read three numbers (because it's
called triangle.txt). If you read raw binary and your file is in ASCII
you'll actually read the following bytes:
51 32 52 32 53

So you need to convert these bytes into numbers (or use %c istead of %d
in the above printf()). Try this:-

if (scanf (buf "%d %d %d", &j, &k, &m) != 3)
{
printf ("can't parse line\n");
exit (1);
}
else
printf ("read %d, %d %d\n", j, k, m);

declare j, k and m as int

return 0;
}

------------------
i am getting no.of elements read as 0,but file is openable...
the elements as junk numbers...
hmm. I only just noticed this. I don't know what your file looks like.
I don't know what "junk number" are. You've told it read five lots of
4 bytes (assuming 32-bit ints). Probably not what you meant. That won't

fit in a 5 bytes array. Really do change over to fgets(). fread() is
for binary data. fread() may not handle end of line and end of file
correctly.
can anybody tell me wat is the problem in doing this ..????
is it that i m using fread wrongly or it behaves abnoramlly???


I suggest you get a good book. Eg. K&R.
--
Nick Keighley

Quantum Boggum Sort:
Q1. use a source of quantum noise (eg. radioactive decay) to
randomly permutate an array.
Q2. if the array is not ordered, destroy the universe (*)
Q3. if you reached this step your universe has sorted the array
in O(n) time.

(*) [100] this is left as a exercise

Nov 15 '05 #9
Rajshekhar <ra*********@gmail.com> wrote:
#include<stdio.h>
The prototype for exit() is in stdlib.h, which you forgot to include.
int main()
{
FILE *fp1;
int buf[5];
int num,i; fp1=fopen("triangle.txt","r"); num=fread(buf,sizeof(int),5,fp1);
Consider what you are doing here. You are asking for the first sizeof
int * 5 bytes of the file (probably 20); if the file contains 6 4 4,
buf[0] will contain four bytes that correspond to the internal
representations of '6', ' ', and '4'. As already noted, you'd be much
better off reading the contents of this file using fgets() and using
strtol() and friends to get your integers.
printf("num of elements read =%d\n",num); for(i=0;i<5;i++)
As a side note, if you know you read num bytes from the file, why not
iterate num times through buf?
printf("%d\n",buf[i]);
return 0;
}


--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 15 '05 #10
Hello ...
In the above code the file is not closed ....use something like
fcloseall() at the least to at the end of the programs where u use
files ..

the problem with ur program is here

#include<stdio.h>


----> num=fread(buf,sizeof(int),5,fp*1); /*this takes in values in
ascii format .. and stores the ascii values ...
printf("num of elements read =%d\n",num);
for(i=0;i<5;i++)
printf("%d\n",buf[i]); /* here use %c to print the numbers .. it
will convert the ascii to their corresponding chars ... that is the
numbers u want .. */
return 0;
/*fcloseall() or fclose(fp1); here please
}
i didnot wish to offend any one by this mail.....

Nov 15 '05 #11
<l4*****@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...

In the above code the file is not closed ....use something like
fcloseall() at the least to at the end of the programs where u use
files ..

the problem with ur program is here

#include<stdio.h>

A conforming C implementation closes all files at program shutdown.
It also does *not* contain a call to fcloseall, which is not part
of the C Standard.

P.J. Plauger
Dinkumware, Ltd.
http://www.dinkumware.com
Nov 15 '05 #12
Rajshekhar wrote:
hi
the file triangle.txt contents are...
6 6 4

thats it .....
i dont think this file is binary file ..!!!


Rajshekhar, please quote what you're replying to in your message. I for
one can't always see what it is you're replying to, so sometimes your
reply looks like gibberish without context. You'll see this mentioned
often in the newsgroup if you've been reading for some time. It makes it
much more difficult for people to answer you (and decreases the
likelihood that they do)

Looking at the prototype for fread, it is:

size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);

Based on your program, it tries to read 5*(sizeof int) from the file.
That's because it doesn't care about spaces, commas or other
punctuation. For that you should look at some other functions such as
fscanf, or write your own parser (much more recommended). There have
been numerous posts to this newsgroup asking the same question you have
in the last month - so please go have a look.

I don't know what the size of an int is on your machine, but it's
probably 4 or 8.

From the description I have of 'fread', it says:
"The function fread reads nmemb elements of data, each size bytes
long, from the stream pointed to by stream, storing them at the location
given by ptr."

This means, if your file has the contents:

6 6 4

This looks like (in binary)

0x36 0x20 0x36 0x20 0x34 (values are in hex)

So, I expect the first value to be something like 0x36203620 or
0x20362036 depending on the endianness of your machine (one big hex
number, that probably looks random).

The fact that you're getting a result of zero from fread() might be
because sizeof int is 8 bytes (there aren't 8 bytes in your file
triangle.txt).

Indeed, when I compile your program, I get the result:
num of elements read =1
540418102
134482484
-1075253336
134513429
0

Now ignoring the last 4 digits (because num=1), converting 540418102 to
hex we have exactly 0x20362036 (I'm running an Intel, little endian - a
Mot 68k would give a different result). This is exactly what I had expected.

Also, you have other problems in your code. I'll post it here again:

#include<stdio.h>

/* ** You should include other headers here as well, such as */
#include <stdlib.h>
/* as otherwise exit() is not defined */

/* ** You should use int main(void), in C the empty brackets is
discouraged and is the old style. Also the meaning between C and C++ is
different so portability is lost */
int main()
{
FILE *fp1;
int buf[5];
int num,i;

fp1=fopen("triangle.txt","r");
if(fp1 == NULL)
{
printf("file cant be opend");
exit(0);
}

num=fread(buf,sizeof(int),5,fp1);
printf("num of elements read =%d\n",num);

/* Instead of 'i<5' you should use 'i<num'. That way your not going to
access elements of buf[] that aren't initialised. This is why the last 4
values in my output (sizeof int == 4) are also garbage */
for(i=0;i<5;i++)
printf("%d\n",buf[i]);
return 0;
}
Nov 15 '05 #13
Rajshekhar wrote on 24/08/05 :
hi
the file triangle.txt contents are...
6 6 4
Ok, a text file.
thats it .....
i dont think this file is binary file ..!!!


fopen() the file in text mode ("r")

You want fgets() to get the line and sscanf() with "%d %d %d" to parse
it.

--
Emmanuel
The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html
The C-library: http://www.dinkumware.com/refxc.html

"Clearly your code does not meet the original spec."
"You are sentenced to 30 lashes with a wet noodle."
-- Jerry Coffin in a.l.c.c++
Nov 15 '05 #14

Jason Curl wrote:
Rajshekhar wrote:
hi
the file triangle.txt contents are...
6 6 4

thats it .....
i dont think this file is binary file ..!!!

Rajshekhar, please quote what you're replying to in your message. I for
one can't always see what it is you're replying to, so sometimes your
reply looks like gibberish without context. You'll see this mentioned
often in the newsgroup if you've been reading for some time. It makes it
much more difficult for people to answer you (and decreases the
likelihood that they do)

Looking at the prototype for fread, it is:

size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);

Based on your program, it tries to read 5*(sizeof int) from the file.
That's because it doesn't care about spaces, commas or other
punctuation. For that you should look at some other functions such as
fscanf, or write your own parser (much more recommended). There have
been numerous posts to this newsgroup asking the same question you have
in the last month - so please go have a look.

I don't know what the size of an int is on your machine, but it's
probably 4 or 8.

From the description I have of 'fread', it says:
"The function fread reads nmemb elements of data, each size bytes
long, from the stream pointed to by stream, storing them at the location
given by ptr."

This means, if your file has the contents:

6 6 4

This looks like (in binary)

0x36 0x20 0x36 0x20 0x34 (values are in hex)

So, I expect the first value to be something like 0x36203620 or
0x20362036 depending on the endianness of your machine (one big hex
number, that probably looks random).

The fact that you're getting a result of zero from fread() might be
because sizeof int is 8 bytes (there aren't 8 bytes in your file
triangle.txt).

Indeed, when I compile your program, I get the result:
num of elements read =1
540418102
134482484
-1075253336
134513429
0

Now ignoring the last 4 digits (because num=1), converting 540418102 to
hex we have exactly 0x20362036 (I'm running an Intel, little endian - a
Mot 68k would give a different result). This is exactly what I had expected.

Also, you have other problems in your code. I'll post it here again:

#include<stdio.h>

/* ** You should include other headers here as well, such as */
#include <stdlib.h>
/* as otherwise exit() is not defined */

/* ** You should use int main(void), in C the empty brackets is
discouraged and is the old style. Also the meaning between C and C++ is
different so portability is lost */
int main()
{
FILE *fp1;
int buf[5];
int num,i;

fp1=fopen("triangle.txt","r");
if(fp1 == NULL)
{
printf("file cant be opend");
exit(0);
}

num=fread(buf,sizeof(int),5,fp1);
printf("num of elements read =%d\n",num);

/* Instead of 'i<5' you should use 'i<num'. That way your not going to
access elements of buf[] that aren't initialised. This is why the last 4
values in my output (sizeof int == 4) are also garbage */
for(i=0;i<5;i++)
printf("%d\n",buf[i]);


... to say nothing of the missing fclose()! return 0;
}


Nov 15 '05 #15
Suman wrote:
Jason Curl wrote:
Rajshekhar wrote:
hi
the file triangle.txt contents are...
6 6 4

thats it .....
i dont think this file is binary file ..!!!

Rajshekhar, please quote what you're replying to in your message. I for
one can't always see what it is you're replying to, so sometimes your
reply looks like gibberish without context. You'll see this mentioned
often in the newsgroup if you've been reading for some time. It makes it
much more difficult for people to answer you (and decreases the
likelihood that they do)

Looking at the prototype for fread, it is:

size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);

Based on your program, it tries to read 5*(sizeof int) from the file.
That's because it doesn't care about spaces, commas or other
punctuation. For that you should look at some other functions such as
fscanf, or write your own parser (much more recommended). There have
been numerous posts to this newsgroup asking the same question you have
in the last month - so please go have a look.

I don't know what the size of an int is on your machine, but it's
probably 4 or 8.

From the description I have of 'fread', it says:
"The function fread reads nmemb elements of data, each size bytes
long, from the stream pointed to by stream, storing them at the location
given by ptr."

This means, if your file has the contents:

6 6 4

This looks like (in binary)

0x36 0x20 0x36 0x20 0x34 (values are in hex)

So, I expect the first value to be something like 0x36203620 or
0x20362036 depending on the endianness of your machine (one big hex
number, that probably looks random).

The fact that you're getting a result of zero from fread() might be
because sizeof int is 8 bytes (there aren't 8 bytes in your file
triangle.txt).

Indeed, when I compile your program, I get the result:
num of elements read =1
540418102
134482484
-1075253336
134513429
0

Now ignoring the last 4 digits (because num=1), converting 540418102 to
hex we have exactly 0x20362036 (I'm running an Intel, little endian - a
Mot 68k would give a different result). This is exactly what I had expected.

Also, you have other problems in your code. I'll post it here again:

#include<stdio.h>

/* ** You should include other headers here as well, such as */
#include <stdlib.h>
/* as otherwise exit() is not defined */

/* ** You should use int main(void), in C the empty brackets is
discouraged and is the old style. Also the meaning between C and C++ is
different so portability is lost */
int main()
{
FILE *fp1;
int buf[5];
int num,i;

fp1=fopen("triangle.txt","r");
if(fp1 == NULL)
{
printf("file cant be opend");
exit(0);
}

num=fread(buf,sizeof(int),5,fp1);
printf("num of elements read =%d\n",num);

/* Instead of 'i<5' you should use 'i<num'. That way your not going to
access elements of buf[] that aren't initialised. This is why the last 4
values in my output (sizeof int == 4) are also garbage */
for(i=0;i<5;i++)
printf("%d\n",buf[i]);

... to say nothing of the missing fclose()!


Most modern operating systems take care of this usually, but it is good
to not assume anything about the OS.
return 0;
}


Nov 15 '05 #16
Suman <sk*****@gmail.com> wrote:
(snip gratuitous quoted text)
... to say nothing of the missing fclose()!


1) You might trim your attributions judiciously when making short posts.
2) The eminent Mr. Plauger stated elsethread that a conforming
implementation closes all open files when the program ends.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 15 '05 #17
Groovy hepcat Rajshekhar was jivin' on 24 Aug 2005 02:29:14 -0700 in
comp.lang.c.
im facing problem with fread()??'s a cool scene! Dig it!
i am writing a simple prgm to read a .txt file then store the contents
into the array...
program as follows:
--------------------------
#include<stdio.h>

int main()
{
FILE *fp1;
int buf[5];
int num,i;

fp1=fopen("triangle.txt","r");
if(fp1 == NULL)
{
printf("file cant be opend");
exit(0);
}

num=fread(buf,sizeof(int),5,fp1);
printf("num of elements read =%d\n",num);

for(i=0;i<5;i++)
printf("%d\n",buf[i]);
return 0;
}


You are apparently trying to read binary data from a file with a
.txt extention (suggesting it's a text file) opened in text mode. That
can't possibly be right. Does the file actually contain text data? If
so, read it with a text reading function such as fscanf(). If it is
actually binary, however, give your file a different extention (to
prevent anyone using it being confused as to its true contents) and
open it in binary mode.

--

Dig the even newer still, yet more improved, sig!

http://alphalink.com.au/~phaywood/
"Ain't I'm a dog?" - Ronny Self, Ain't I'm a Dog, written by G. Sherry & W. Walker.
I know it's not "technically correct" English; but since when was rock & roll "technically correct"?
Nov 15 '05 #18

Christopher Benson-Manica wrote:
Suman <sk*****@gmail.com> wrote:
(snip gratuitous quoted text)
... to say nothing of the missing fclose()!
1) You might trim your attributions judiciously when making short posts.


Oh, sure I will.
2) The eminent Mr. Plauger stated elsethread that a conforming
implementation closes all open files when the program ends.


It does so indeed. However, I don't consider it a good practice to
leave things to the system when you ought to[1] do it yourself.
I have had seen code that crashed, because it was only opening
files, and thousands of them, at a time, and not closing them.
My point is -- it is better to be complete, always.
Even for short programs, where it hardly matters. To make it a
matter of habbit. It might not matter for *that* particular problem,
but later, when you least want it to -- it might just.

[1] ought to -- a very subjective one

Nov 15 '05 #19
"Suman" <sk*****@gmail.com> writes:
Christopher Benson-Manica wrote:
Suman <sk*****@gmail.com> wrote:
> (snip gratuitous quoted text)
> ... to say nothing of the missing fclose()!


1) You might trim your attributions judiciously when making short posts.


Oh, sure I will.
2) The eminent Mr. Plauger stated elsethread that a conforming
implementation closes all open files when the program ends.


It does so indeed. However, I don't consider it a good practice to
leave things to the system when you ought to[1] do it yourself.
I have had seen code that crashed, because it was only opening
files, and thousands of them, at a time, and not closing them.
My point is -- it is better to be complete, always.
Even for short programs, where it hardly matters. To make it a
matter of habbit. It might not matter for *that* particular problem,
but later, when you least want it to -- it might just.


Sure, you should always fclose() any file that you fopen() -- not
because you can't count on the implementation to do it for you, but
because it's good style. Any implementation that doesn't properly
close all open files when the program terminates is broken, but if I
write my own code properly I'll never notice.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 15 '05 #20

Keith Thompson wrote:
"Suman" <sk*****@gmail.com> writes:
Christopher Benson-Manica wrote:
[snip]
2) The eminent Mr. Plauger stated elsethread that a conforming
implementation closes all open files when the program ends.
It does so indeed. However, I don't consider it a good practice to
leave things to the system when you ought to[1] do it yourself.


[snip more rants!]
Sure, you should always fclose() any file that you fopen() -- not
because you can't count on the implementation to do it for you, but
because it's good style.
Ok.
Any implementation that doesn't properly
close all open files when the program terminates is broken, but if I
write my own code properly I'll never notice.


Pardon me, but are you being vaguely reproving (of my views)?

Nov 15 '05 #21
"Suman" <sk*****@gmail.com> writes:
Keith Thompson wrote:

[...]
Any implementation that doesn't properly
close all open files when the program terminates is broken, but if I
write my own code properly I'll never notice.


Pardon me, but are you being vaguely reproving (of my views)?


No, actually I was agreeing with you.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 15 '05 #22

Keith Thompson wrote:
"Suman" <sk*****@gmail.com> writes:
Keith Thompson wrote:

[...]
Any implementation that doesn't properly
close all open files when the program terminates is broken, but if I
write my own code properly I'll never notice.


Pardon me, but are you being vaguely reproving (of my views)?


No, actually I was agreeing with you.


Thank you. An error of judgement on my part.

Nov 15 '05 #23

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

Similar topics

5
by: John Douglass | last post by:
I'm fairly new to doing involved file i/o and I came across something weird with a program I'm writing (modifying MIDI data, if it makes any difference). With some input files, when I modify data...
2
by: Atulvid | last post by:
Hi, I created a test file for my application by writing structures to a binary file. To make sure that I will get correct data for the pointers inside the structure, i wrote actual data they...
10
by: Alain Lafon | last post by:
Helas, I got something that should be a minor problem, but anyhow it isn't to me right now. A little code fragment: fread(&file_qn, x, 1, fp_q); The corresponding text file looks like...
13
by: 010 010 | last post by:
I found this very odd and maybe someone can explain it to me. I was using fread to scan through a binary file and pull bytes out. In the middle of a while loop, for no reason that i could...
10
by: underground | last post by:
I need a little help figuring this one out. I have a script that I've modified to post mutiple binary files into a single row but instead of copying the indiviuals files it rewrites the first file to...
30
by: empriser | last post by:
How to use fread/fwrite copy a file. When reach file's end, fread return 0, I don't konw how many bytes in buf.
2
by: gustavoprogrammer | last post by:
Hi you guys! How are? I'm new at the forum and know you could help me!! I Have a C program that works with file...it's so simple, but i need help with deletion of some data in a file(.dat). This...
10
by: Stephen.Schoenberger | last post by:
Hello, Sorry if this is not "exactly" a C topic but I thought this would be the best place to start. I need some guidance on working with bitmap images in ANSI C. I need to "read" in a bitmap...
1
by: neovantage | last post by:
Hey all, I am using a PHP script which creates headings at run time in a sense at page execution. I am stuck a with a very little problem which i am sure i will have the solution from experts. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
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...
0
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...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.