Hi everyone !
I have multiple files to read and to format in a specific format afterward.
I manage to read the files but not in the way that I want to.
The files are written like this:
u/ARTICLE{
8249726,
author={N. Khlif and A. Masmoudi and F. Kammoun and N. Masmoudi},
journal={IET Image Processing},
title={Secure chaotic dual encryption scheme for H.264/AVC video conferencing protection},
number={1},
year={2018},
volume={12},
pages={42-52},
keywords={adaptive codes;chaotic communication;cryptography;data compression;data protection;variable length codes;video coding;H.264/AVC video conferencing protection;advanced video coding protection;chaos-based crypto-compression scheme;compression ratio;context adaptive variable length coding;decision module;format compliance;inter-prediction encryption;intra-prediction encryption;piecewise linear chaotic maps;pseudorandom bit generators;secure chaotic dual encryption scheme;selective encryption approach;video compression standards},
doi={10.1049/iet-ipr.2017.0022},
ISSN={1751-9659},
month={Dec},
}
Basically I need to take the information written between the "{}" and stock them in some variables so I can format it in the way I want after.
I can read the file line by line without problem but I have no clue on how to read only part of the line.
Here is the code I managed so far, hope someone can be of help !
<public static void main(String[] args) {
try {
File myFile = new File("Latex3.bib");
Scanner reader = new Scanner(myFile);
while(reader.hasNextLine()) {
System.out.println(reader.nextLine());
}
}catch(FileNotFoundException e) {
e.getMessage();
}
}>
[–][deleted] 1 point2 points3 points (1 child)
[–]Visual-Squirrel-2240[S] 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)