Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.c++ > #4728

[OT]Cancellare riga da file

From "news@tin.it" <news@tin.it.NO>
Newsgroups it.comp.lang.c++
Subject [OT]Cancellare riga da file
Date 2019-09-11 10:20 +0200
Organization Aioe.org NNTP Server
Message-ID <qlaapa$abu$1@gioia.aioe.org> (permalink)

Show all headers | View raw


Salve a tutti

Mi sapete dire come e possibile in C, cancellare una riga
o più righe presenti in un file.txt.
Spiego. Ho una file con delle stringhe alfanumeriche da 20caratteri
poi altri campi più piccoli. Con uno scanf %s %d ... prelevo i relativi
dati, controllo che nella prima riga nel primo campo nella stringa
alfanumerica, se alla posizione x o y o tutti e due xy, se e  presente
un certo tipo di carattere/i  devo cancellare tale riga.
Come posso fare in C?

Grazie

Ciao a tutti


Back to it.comp.lang.c++ | Previous | NextNext in thread | Find similar


Thread

[OT]Cancellare riga da file "news@tin.it" <news@tin.it.NO> - 2019-09-11 10:20 +0200
  Re: [OT]Cancellare riga da file fmassei@gmail.com - 2019-09-11 07:33 -0700
    Re: [OT]Cancellare riga da file "news@tin.it" <news@tin.it.NO> - 2019-09-16 15:57 +0200

csiph-web