omidaoui
Messages postés32Date d'inscriptiondimanche 11 novembre 2012StatutMembreDernière intervention 2 décembre 2017
-
18 nov. 2012 à 04:54
Bonsoir,
j'ai un fichier text comme suit
--------------------------------------------------------------------------------------------------------
.I 1
.T
18 Editions of the Dewey Decimal Classifications
.A
Comaromi, J.P.
.W
The present study is a history of the DEWEY Decimal
Classification. The first edition of the DDC was published
in 1876, the eighteenth edition in 1971, and future editions
will continue to appear as needed. In spite of the DDC's
long and healthy life, however, its full story has never
been told. There have been biographies of Dewey
that briefly describe his system, but this is the first
attempt to provide a detailed history of the work that
more than any other has spurred the growth of
librarianship in this country and abroad.
.X
1 2 1
1 2 1
1 2 1
1 2 1
1 2 1
556 2 1
92 2 1
262 2 1
1004 2 1
1024 2 1
.I 2
.T
Use Made of Technical Libraries
.A
Slater, M.
.W
This report is an analysis of 6300 acts of use
in 104 technical libraries in the United Kingdom.
Library use is only one aspect of the wider pattern of
information use. Information transfer in libraries is
restricted to the use of documents. It takes no
account of documents used outside the library, still
less of information transferred orally from person
to person. The library acts as a channel in only a
proportion of the situations in which information is
transferred.
Taking technical information transfer as a whole,
there is no doubt that this proportion is not the
major one. There are users of technical information -
particularly in technology rather than science -
who visit libraries rarely if at all, relying on desk
collections of handbooks, current periodicals and personal
contact with their colleagues and with people in other
organizations. Even regular library users also receive
information in other ways.
.X
2 2 2
2 2 2
2 2 2
2 2 2
2 2 2
475 2 2
552 2 2
.I 3
.T
Two Kinds of Power
An Essay on Bibliographic Control
.A
Wilson, P.
.W
The relationships between the organization and control of writings
and the organization and control of knowledge and information will
inevitably enter our story, for writings contain, along with much else, a
great deal of mankind's stock of knowledge and information. Bibliographical
control is a form of power, and if knowledge itself is a form of power,
as the familiar slogan claims, bibliographical control is in a certain sense
power over power, power to obtain the knowledge recorded in written
form. As writings are not simply, and not in any simple way, storehouses of
knowledge, we cannot satisfactorily discuss bibliographical control as
simply control over the knowledge and information contained in writings.
.X
3 2 3
3 2 3
3 2 3
3 2 3
3 2 3
3 2 3
3 2 3
444 2 3
457 2 3
je veux lire le fichier, de facon a ce ke chaque .I se refere a un document
c a d par exemple :
.I 1 = doc 1
.I 2 = doc 2 ....ect.
je veux parcourire tout le fichier et tester si les termes figurent dans la liste [ Dewey, Classifications, system ] existent dans le fichier pour chaque document
par exemple :
si je trouve le terme "Dewey" dans Doc 1 c a d entre .I 1 et .I 2 alors j'incremente un compteur c de 1 --> c++;
et je passe au doc suivant document 2 de la meme facons
sinn si je trouve pas le terme 'Dewey' dans Doc 1 je passe au terme 'Classifications' et ainsi de suite, jusqua parcourie tout les termes de la liste, en cas de non existence.
Remarque :
ce programme revoie le nombre de document pertinent pour la requete contenant les termes [ Dewey, Classifications, system ]
une fois un des termes de la requete est trouvee dans un doc, alors ce document est pertinent on increment le nombre de doc pertinent et en passe au doc suivant dans le fichier,
aider moi je suis bloquee
voila le code ke j'ai fait :
public void chargertermesDoc(String chemin) throws IOException {
File f = new File(chemin);
Scanner s = new Scanner(f);
listDoc.clear();
int numDoc = 0,a=0;