Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.lang.c++ > #4722
| From | jak <please@nospam.ty> |
|---|---|
| Newsgroups | it.comp.lang.c++ |
| Subject | Re: [OT] Popen e cat linux |
| Date | 2019-06-27 07:14 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <qf1jbs$eut$1@gioia.aioe.org> (permalink) |
| References | <qeqmad$1pkd$1@gioia.aioe.org> <qetm48$l4d$1@dont-email.me> <qev72k$1rsu$1@gioia.aioe.org> |
Il 26/06/2019 09:33, news@tin.it ha scritto: >>> >>> >>> >>> >> >> perche usare cat e popen ? >> basta aprire il file,leggere riga per riga e con operator << trasformare >> il valore nel tipo voluto >> > > Perche sto parlando di linguaggio C e non C++. :-) > IL NG di C e morto, mi sono rivolto quì. > > La domanda resta, pero', valida: perche' popen + cat quando basta aprire il file (fopen)? In ogni caso, leggendo dal file o catturando l'output di cat la solfa non cambia perche' il metodo con cui acquisirai i dati dipende dal loro formato e dal fatto che tu debba o meno valutare se assegnare il dato letto in un int, in un char o altro tipo. In questo caso lo scan&parse, per quanto semplice, sara' necessario. Posta un esempio del file che dovrai leggere e spiega cosa vorresti ottenere se ti interessa una risposta piu' mirata. Saluti, jak.
Back to it.comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar
Popen e cat linux "news@tin.it" <news@tin.it.NO> - 2019-06-24 16:22 +0200
Re: Popen e cat linux enoquick <enoquick@gmail.com> - 2019-06-25 12:37 -0500
[OT] Popen e cat linux "news@tin.it" <news@tin.it.NO> - 2019-06-26 09:33 +0200
Re: [OT] Popen e cat linux enoquick <enoquick@gmail.com> - 2019-06-26 19:46 -0500
Re: [OT] Popen e cat linux jak <please@nospam.ty> - 2019-06-27 07:14 +0200
Re: [OT] Popen e cat linux "news@tin.it" <news@tin.it.NO> - 2019-06-27 08:04 +0200
Re: [OT] Popen e cat linux jak <please@nospam.ty> - 2019-06-27 08:26 +0200
Re: [OT] Popen e cat linux enoquick <enoquick@gmail.com> - 2019-06-27 06:32 -0500
csiph-web