473,403 Members | 2,071 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,403 software developers and data experts.

read url

Hi all,
this is a newbie-question again, but i couldn't find a solution on the net:
I want to open a url (like
fopen ("http://www.site.com/welcome.jpg", "r");
) and copy the file to a local file (like "copy welcome.jpg A:")
How can I open the file?
Thanks
Georg
Nov 14 '05 #1
24 3910
Georg Klein <kr*****@gmx.de> wrote:
this is a newbie-question again, but i couldn't find a solution on the net:
I want to open a url (like
fopen ("http://www.site.com/welcome.jpg", "r");
) and copy the file to a local file (like "copy welcome.jpg A:")
How can I open the file?


You can't because what you try to open there isn't a file but something
that you only get at via a network connection, using the HTTP protocol.
Standard C has no functions for doing such things and if it is possible
to get at such an external file you will have to use some platform spe-
cific extensions. Thus you will have to ask in a group dedicated to the
system you're working with - I guess in your case some Windows programm-
ing group.
Regards, Jens
--
\ Jens Thoms Toerring ___ Je***********@physik.fu-berlin.de
\__________________________ http://www.toerring.de
Nov 14 '05 #2
Georg Klein wrote:
Hi all,
this is a newbie-question again, but i couldn't find a solution on the net:
I want to open a url (like
fopen ("http://www.site.com/welcome.jpg", "r");
) and copy the file to a local file (like "copy welcome.jpg A:")
How can I open the file?
Thanks
Georg

If you use the lcc-win32 compiler you can do:

GetHttpUrl("http://www.mysite.com/mydoc.html","c:\\temp\\mydoc.html");

Very easy.

lcc-win32: http://www.cs.virginia.edu/~lcc-win32

P.S.:
Disclaimer:
Of course this is not part of the C language as defined by ISO.
Nov 14 '05 #3
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Je***********@physik.fu-berlin.de wrote:
Georg Klein <kr*****@gmx.de> wrote:
this is a newbie-question again, but i couldn't find a solution on the net:
I want to open a url (like
fopen ("http://www.site.com/welcome.jpg", "r");
) and copy the file to a local file (like "copy welcome.jpg A:")
How can I open the file?

You can't because what you try to open there isn't a file


I agree with you so far.
but something
that you only get at via a network connection, using the HTTP protocol.
Sorry, but here's where I disagree.

A file (at least in C), is something external. There are no more details
in the C standard than that as to how a file is implemented external to
C. A stream is associated to a file by way of the fopen() function. If
fopen() can manage it, then whatever the named resource actually
represents, it is a file to C.

Consider, on a MSWindowsish environment,
fopen("\\\\SERVER\\SHARE\\file.txt","r")
can be a valid file open, even though it represents data "that you only
get via a network connection".

Similarly, on MVS,
fopen("DDNAME:SYSIPT","r");
opens a real file, but the file isn't named "DDNAME:SYSIPT". The logical
name to physical name translation is managed by the stdio library.

/If/ the OP's C implementation handled URL-formatted filenames, /then/
fopen("http://server/file.jpg","r");
would be just as legal as
fopen("\\\\SERVER\\SHARE\\file.txt","r")
or
fopen("DDNAME:SYSIPT","r");
is to their respective C implementations. This is a
quality-of-implementation issue, not a language issue.
Standard C has no functions for doing such things
as managing, through an implementation-independant C language feature,
network access. However, the C standard does not restrict an
implementation from providing such a feature, so long as it is handled
as part of the "implementation defined" aspects of the standard C
language features.
and if it is possible
to get at such an external file you will have to use some platform spe-
cific extensions
if your C implementation does not offer such a facility through one of
the standard C language features .
Thus you will have to ask in a group dedicated to the
system
or C compiler
you're working with - I guess in your case some Windows programm-
ing group.
Regards, Jens

- --

Lew Pitcher, IT Consultant, Enterprise Data Systems
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFBrL5QagVFX4UWr64RAuOnAJ9orQG8URxZl1fzD1QLPm D2Fee0rQCg5VJB
g/y0FeI7wnq58Ri8/jcES6Y=
=wsZt
-----END PGP SIGNATURE-----
Nov 14 '05 #4
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Georg Klein wrote:
Hi all,
this is a newbie-question again, but i couldn't find a solution on the net:
I want to open a url (like
fopen ("http://www.site.com/welcome.jpg", "r");
) and copy the file to a local file (like "copy welcome.jpg A:")
How can I open the file?


The long and short of it is that, if your C implementation does not
support url-name filenames, then there is no way to open such a file
using standard C.

If this is the case, then you will have to depend on platform-specific
extensions to the C language, and the best place to find out about those
would be a newsgroup that takes either your C compiler or your execution
environment as it's subject matter.

- --

Lew Pitcher, IT Consultant, Enterprise Data Systems
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFBrL7qagVFX4UWr64RAsvTAJsEjWIATWcfKi1tLzEwu4 BtEZRaJgCaAnNV
fsrmUWEGqCVNh7VSI6Ka42I=
=xQb3
-----END PGP SIGNATURE-----
Nov 14 '05 #5
On Tue, 30 Nov 2004 18:31:37 +0100
jacob navia <ja***@jacob.remcomp.fr> wrote:
Georg Klein wrote:
Hi all,
this is a newbie-question again, but i couldn't find a solution on
the net: I want to open a url (like
fopen ("http://www.site.com/welcome.jpg", "r");
) and copy the file to a local file (like "copy welcome.jpg A:")
How can I open the file?
Thanks
Georg

If you use the lcc-win32 compiler you can do:

GetHttpUrl("http://www.mysite.com/mydoc.html","c:\\temp\\mydoc.html");


<snip>

Strange. I tried this but the compiler failed to run on any of the
computers I own. I did not try it on my company laptop, but it certainly
doesn't run on any of the other half dozen or more computer I use at
work, nor on any of the many customers machines I can shell on to from
within the office. Of course, none of them are running MS software, but
I think giving up before trying the last machine I have access to is
reasonable.
P.S.:
Disclaimer:
Of course this is not part of the C language as defined by ISO.


Then stop posting this off topic rubbish here. You know it is off topic
since this has been pointed out to you often enough.
--
Flash Gordon
Living in interesting times.
Although my email address says spam, it is real and I read it.
Nov 14 '05 #6
Flash Gordon wrote:

Then stop posting this off topic rubbish here. You know it is off topic
since this has been pointed out to you often enough.


I answered the OP question with a solution that fits exactly what he is
asking for.

Your objective is what?

To help the people that post questions or to post "off topic" messages?

I explicitly mentioned that GetHttpUrl is not part of ISO C, so there
is no possible misunderstanding of my post.

Nov 14 '05 #7
jacob navia wrote:
Georg Klein wrote:

this is a newbie-question again, but i couldn't find a solution
on the net: I want to open a url (like
fopen ("http://www.site.com/welcome.jpg", "r");
) and copy the file to a local file (like "copy welcome.jpg A:")
How can I open the file?

If you use the lcc-win32 compiler you can do:

(something totally non-standard)


Surely you know by now that non-standard C is off-topic here, and
that it is bad to suggest such non-portable things to people with
insufficient knowledge to defend themselves. If you had limited
yourself to something like "try the lcc newsgroup for a
non-standard quasi-C system that can handle this" there would be no
objection.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 14 '05 #8
> insufficient knowledge to defend themselves. If you had limited
yourself to something like "try the lcc newsgroup for a
non-standard quasi-C system that can handle this" there would be no
objection.


OK, the best would have been a standard-way to solve my problem. But for the
moment I'd be happy about every solution that works, and jacob told me it
was non-standard.
I didn't make it in lcc until now, so that might not have been the right for
me...
Georg
Nov 14 '05 #9
On Tue, 30 Nov 2004 21:53:00 +0100
jacob navia <ja***@jacob.remcomp.fr> wrote:
Flash Gordon wrote:

Then stop posting this off topic rubbish here. You know it is off
topic since this has been pointed out to you often enough.
I answered the OP question with a solution that fits exactly what he
is asking for.


So how will he call that from his program written to use lots of
incompatable extensions from another compiler vendor?

The point is you have no way of knowing that your suggestion answers the
OPs question. It also happens that if the OP asks in the *right* place
he may get a much more portable answer, such as a library that is
available for multiple OSs and environments that will do the required
job.
Your objective is what?

To help the people that post questions or to post "off topic"
messages?
My objective is to discus and learn about the C language not about your
compiler.

BTW, because of your attitude here were the question to come up I would
recommend not using your product. Now, my company is only small, but I
am *the* person who would be asked.
I explicitly mentioned that GetHttpUrl is not part of ISO C, so there
is no possible misunderstanding of my post.


It also shows you know it is off topic here. You could have redirected
the OP to an appropriate group and discuss the issue there.
--
Flash Gordon
Living in interesting times.
Although my email address says spam, it is real and I read it.
Nov 14 '05 #10
jacob navia <ja***@jacob.remcomp.fr> writes:
Flash Gordon wrote:
Then stop posting this off topic rubbish here. You know it is off
topic
since this has been pointed out to you often enough.


I answered the OP question with a solution that fits exactly what he is
asking for.

Your objective is what?

To help the people that post questions or to post "off topic" messages?

I explicitly mentioned that GetHttpUrl is not part of ISO C, so there
is no possible misunderstanding of my post.


I'm having problems viewing certain web pages with my browser. If I
ask about it in comp.lang.c, are you going to answer my question here,
or are you going to tell me that this isn't the place for it? What if
I'm having car trouble? What if I'm trying to track down the author
of a science fiction story I read years ago?

--
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 14 '05 #11
On Tue, 30 Nov 2004 21:53:00 +0100, in comp.lang.c , jacob navia
<ja***@jacob.remcomp.fr> wrote:
Flash Gordon wrote:

Then stop posting this off topic rubbish here. You know it is off topic
since this has been pointed out to you often enough.
I answered the OP question with a solution that fits exactly what he is
asking for.


And if he'd asked for the price of herring in Havnafjord, or the name of
the metro station nearest to Place de Vendome, would you also have told him
that?
Your objective is what?


To ask you politely to stop answering questions with offtopic answers,
which cannot be peer-reviewed here, and which encourage the original poster
to ask offtopic questions in the expectation of getting more answers.

Next time, someone will give him an erroneous answer and nobody will
realise because we're not experts in this offtopic field. So you're doing
the OP a disservice and increasing the SN ratio in the group, all at once.

--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Nov 14 '05 #12
On Tue, 30 Nov 2004 23:21:26 +0100, in comp.lang.c , "Georg Klein"
<kr*****@gmx.de> wrote:
I didn't make it in lcc until now, so that might not have been the right for
me...


And whatever compiler you /are/ using probably offers a similar service.
But to find out, you need to ask in the right group. Please do that !

--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Nov 14 '05 #13
In article <gk********************************@4ax.com> Mark McIntyre <ma**********@spamcop.net> writes:
On Tue, 30 Nov 2004 21:53:00 +0100, in comp.lang.c , jacob navia
<ja***@jacob.remcomp.fr> wrote:
Flash Gordon wrote:

Then stop posting this off topic rubbish here. You know it is off topic
since this has been pointed out to you often enough.


I answered the OP question with a solution that fits exactly what he is
asking for.


And if he'd asked for the price of herring in Havnafjord, or the name of
the metro station nearest to Place de Vendome, would you also have told him
that?


A good start for the first (it is Hafnafjord) would probably be the herring
era museum in Siglofjörur. For the second, I would suggest "Stalingrad".
And as there are no knowledgables here... (It is Opéra of course.)
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
Nov 14 '05 #14

"Dik T. Winter" <Di********@cwi.nl> wrote in message
news:I8********@cwi.nl...
In article <gk********************************@4ax.com> Mark McIntyre <ma**********@spamcop.net> writes:
> On Tue, 30 Nov 2004 21:53:00 +0100, in comp.lang.c , jacob navia
> <ja***@jacob.remcomp.fr> wrote:
>
> >Flash Gordon wrote:
> >>
> >> Then stop posting this off topic rubbish here. You know it is off topic > >> since this has been pointed out to you often enough.
> >
> >I answered the OP question with a solution that fits exactly what he is > >asking for.

>
> And if he'd asked for the price of herring in Havnafjord, or the name of > the metro station nearest to Place de Vendome, would you also have told him > that?


A good start for the first (it is Hafnafjord) would probably be the

herring era museum in Siglofjörur. For the second, I would suggest "Stalingrad".
And as there are no knowledgables here... (It is Opéra of course.)

(OT)
Stalingrad was #defined by Krushchev as something other than the namesake of
the greatest butcher of all time. What with progress and all, they've
probably regressed. MPJ
(/OT)
Nov 14 '05 #15

"Flash Gordon" <sp**@flash-gordon.me.uk> wrote in message
news:4h************@brenda.flash-gordon.me.uk...
BTW, because of your attitude here were the question to come up I would
recommend not using your product. Now, my company is only small, but I
am *the* person who would be asked.


Which is an *utterly* unprofessional attitude IMNSHO. Childish, too.
Nov 14 '05 #16
dandelion wrote:
"Flash Gordon" <sp**@flash-gordon.me.uk> wrote in message
BTW, because of your attitude here were the question to come up I
would recommend not using your product. Now, my company is only
small, but I am *the* person who would be asked.


Which is an *utterly* unprofessional attitude IMNSHO. Childish, too.


On the contrary, it seems sound to me. Once the disdain for
standard practices is revealed, he would always have doubts and
worries about using the product for anything other than its own
specialized field. The prevalence of simple omissions and bugs
also becomes apparent, together with the lack of any regression
tests, when monitoring the lcc newsgroup. This is unfortunate,
because a properly controlled open-source system would be a useful
compact alternative to gcc, and M. Navias IDE system has shown
promise for years. Unfortunately it is neither open-source nor
advancing to standards compliance.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 14 '05 #17

"CBFalconer" <cb********@yahoo.com> wrote in message
news:41***************@yahoo.com...
dandelion wrote:
"Flash Gordon" <sp**@flash-gordon.me.uk> wrote in message
BTW, because of your attitude here were the question to come up I
would recommend not using your product. Now, my company is only
small, but I am *the* person who would be asked.


Which is an *utterly* unprofessional attitude IMNSHO. Childish, too.


On the contrary, it seems sound to me.


We disagree.
Nov 14 '05 #18
"dandelion" <da*******@meadow.net> wrote:
"Flash Gordon" <sp**@flash-gordon.me.uk> wrote in message
news:4h************@brenda.flash-gordon.me.uk...
BTW, because of your attitude here were the question to come up I would
recommend not using your product. Now, my company is only small, but I
am *the* person who would be asked.


Which is an *utterly* unprofessional attitude IMNSHO. Childish, too.


It's a very professional attitude, and not childish at all.

Mr. Navia has shown here, repeatedly, that he does not care a jot about
Standards conformance. Why should I trust a compiler suite marketed by
someone who refuses to even try to make it conform to the Standards? I
would run a great risk of some day having one of my programs break
because he had used an identifier which belongs in my namespace, for
example.
He's also shown himself to be less than ideally competent. Even I, who
am hardly an expert C programmer, have been able to poke holes in
several of his assumptions in the past. Why should I trust code by
someone who doesn't even realise, to name but one example, that not all
computers follow the M$ object file model?
Finally, he's shown that he doesn't give a damn about being a social
person. If he cares so little about the very people he seeks help from
that he will spam the newsgroup about "his" compiler, why should I trust
him to treat his customers any better?

In short, _he_ has behaved unprofessionally, and this makes him
unsuitable as a business associate.

Richard
Nov 14 '05 #19
CBFalconer wrote:
dandelion wrote:
"Flash Gordon" <sp**@flash-gordon.me.uk> wrote in message

BTW, because of your attitude here were the question to come up I
would recommend not using your product. Now, my company is only
small, but I am *the* person who would be asked.


Which is an *utterly* unprofessional attitude IMNSHO. Childish, too.

On the contrary, it seems sound to me. Once the disdain for
standard practices is revealed, he would always have doubts and
worries about using the product for anything other than its own
specialized field. The prevalence of simple omissions and bugs
also becomes apparent, together with the lack of any regression
tests, when monitoring the lcc newsgroup. This is unfortunate,
because a properly controlled open-source system would be a useful
compact alternative to gcc, and M. Navias IDE system has shown
promise for years. Unfortunately it is neither open-source nor
advancing to standards compliance.


Hi Chuck

Yesterday, I added this
struct f {
int a:1;
int :7;
};

that wasn't working right.

This is specified in the standard as a way to add padding bits to
a structure. (6.7.2.11)

This has costed me the whole evening, after a full day of work.

Yes, it is slow. Recently I have spent MONTHS working in lcclibc.dll
to get all the zig new C99 functions up and running.

All that without getting paid a penny by anyone.

And more, all this work is never enough. You complain that it
doesn't run in your 486, and others that it is not gcc, etc.

The fact that I am alone doing this doesn't bother anyone here.

Just try to put yourself in my shoes ok?

Every day I work in the compiler, adding a new C99 function,
fixing a bug, adding documentation, fixing the IDE, etc

Sundays included.

jacob
Nov 14 '05 #20
"jacob navia" <ja***@jacob.remcomp.fr> wrote in message
news:41**********************@news.wanadoo.fr...
Hi Chuck

Yesterday, I added this
struct f {
int a:1;
int :7;
};

that wasn't working right.

This is specified in the standard as a way to add padding bits to
a structure. (6.7.2.11)

This has costed me the whole evening, after a full day of work.

Yes, it is slow. Recently I have spent MONTHS working in lcclibc.dll
to get all the zig new C99 functions up and running.

All that without getting paid a penny by anyone.

And more, all this work is never enough. You complain that it
doesn't run in your 486, and others that it is not gcc, etc.

The fact that I am alone doing this doesn't bother anyone here.

Just try to put yourself in my shoes ok?

Every day I work in the compiler, adding a new C99 function,
fixing a bug, adding documentation, fixing the IDE, etc

Sundays included.


I respect your commitment, and I would gladly take a deeper look into your
environment, but I will not install a Windows binary.

Why don't you open source your environment ?

Open source doesn't mean giving up copyright or making you work "freeware".
With the appropriate license, it won't stop you from charging for commercial
use.
At least you will gain more respect, you could get help from other developers,
and provide more value for academic users.
Your project could be ported to different architectures, extended in ways you
cannot imagine...

You claim you do this for nought, have you sold any licenses ?

http://www.cs.virginia.edu/~lcc-win32 is based on
http://www.cs.princeton.edu/software/lcc/ , could you have done what you did
without lcc being open source in the first place ?

--
Chqrlie.
Nov 14 '05 #21
On Wed, 01 Dec 2004 11:59:17 GMT
CBFalconer <cb********@yahoo.com> wrote:
dandelion wrote:
"Flash Gordon" <sp**@flash-gordon.me.uk> wrote in message
BTW, because of your attitude here were the question to come up I
would recommend not using your product. Now, my company is only
small, but I am *the* person who would be asked.


Which is an *utterly* unprofessional attitude IMNSHO. Childish, too.


On the contrary, it seems sound to me.


Always nice when those whose oppinion you respect agree with you. You
and Richard have also saved me a bit of typing. :-)
--
Flash Gordon
Living in interesting times.
Although my email address says spam, it is real and I read it.
Nov 14 '05 #22
On 01 Dec 2004 20:04:28 +1000, in comp.lang.c , Mark L Pappin <ml*@acm.org>
wrote:
jacob navia <ja***@jacob.remcomp.fr> wrote:

[defense of off-topic response to off-topic questions]

Mark McIntyre <ma**********@spamcop.net> writes:
[exhortation not to, and then:]
So you're [...] increasing the SN ratio in the group


You did mean _de_creasing, didn't you?


Depends on whether you're australian?
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Nov 14 '05 #23
jacob navia wrote:
.... snip ...
Every day I work in the compiler, adding a new C99 function,
fixing a bug, adding documentation, fixing the IDE, etc


I really suggest you work on regression tests, and compliance
tests. I believe there is no reason you could not base them on the
gnu suite for gcc.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!

Nov 14 '05 #24
Mark McIntyre <ma**********@spamcop.net> writes:
Mark L Pappin <ml*@acm.org> wrote:
jacob navia <ja***@jacob.remcomp.fr> wrote: [defense of off-topic response to off-topic questions] Mark McIntyre <ma**********@spamcop.net> writes:
[exhortation not to, and then:]
So you're [...] increasing the SN ratio in the group
You did mean _de_creasing, didn't you?

Depends on whether you're australian?


Depends on whether

Signal/(Noise+delta) > Signal/Noise

in my book.
Of course, this presumes

(Signal > 0.0) &&
(Noise > 0.0) && (delta > 0.0) &&
((1/Signal > 0) || (1/Noise > 0))

(as an aside, and bringing some actual C content to this
meta-discussion, can anyone come up with a better way to encapsulate
"X is a floating-point type, i.e. not restricted to integer values"
than

(X > 0) && (1/X > 0)

?)

A lot of people say "SN ratio" when they mean "noise level", but they
are as correct as those who think "i=i++" is valid C.

mlp
(So, am I Australian, Mark?)
Nov 14 '05 #25

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

Similar topics

2
by: Gunnar | last post by:
Hello, I've just written a CPP program that reads integers from a binary file, and used this code while (my_ifstram.read( (char* ) &number, sizeof(int)) { // do something with number } My...
11
by: Markus Breuer | last post by:
I have a question about oracle commit and transactions. Following scenario: Process A performs a single sql-INSERT into a table and commits the transaction. Then he informs process B (ipc) to...
12
by: Steven T. Hatton | last post by:
I know of a least one person who believes std::ifstream::read() and std::ofstream::write() are "mistakes". They seem to do the job I want done. What's wrong with them. This is the code I...
2
by: Sandman | last post by:
Just looking for suggestion on how to do this in my Web application. The goal is to keep track of what a user has and hasn't read and present him or her with new material I am currently doing...
4
by: Ollie Cook | last post by:
Hi, I am having some difficulty with read(2) and interrupting signals. I expect I am misunderstanding how the two work together, so would appreciate some guidance. I am trying to 'time out' a...
6
by: BBM | last post by:
I have an object that has a fairly complex construction sequence, so I have written a dedicated "factory" class that invokes the constructor of my object class (which does nothing but instantiate...
8
by: a | last post by:
I have a struct to write to a file struct _structA{ long x; int y; float z; } struct _structA A; //file open write(fd,A,sizeof(_structA)); //file close
1
by: Jose Reckoner | last post by:
I'm running python 2.3 on Windows XP. Anyone have a quick small script to convert .DT1 and .DEM data to ASCII or some other format? I don't need a viewer. Thanks!
0
by: phplasma | last post by:
Hey, I am currently attempting to implement a multi-threaded C# socket, using SSL (.pem file/certification/private key combo) server using Visual Studio C# Express. I have successfully made...
6
by: arnuld | last post by:
This works fine, I welcome any views/advices/coding-practices :) /* C++ Primer - 4/e * * Exercise 8.9 * STATEMENT: * write a program to store each line from a file into a *...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
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,...
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...

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.