Finding data inside a file

  • 20
Read a file name from the console. Search the file for information related to the specified id. Display it in the format used in the file. The program is started with one argument: id (an int). Close the streams. The file data is separated by spaces and stored in the following order: id productName
You can't complete this task, because you're not signed in.
  • Popular
  • New
  • Old
You must be signed in to leave a comment
SvenLevel 19 , Hanover
4 October 2019, 20:33
It does work with the testfile, but the verification fails anyways. Any suggestions as to what the problem is?
RomanLevel 41
7 October 2019, 06:10
If you need help, something isn't right in your code, the server won't accept your solution (even if you are 100% sure that it is correct). Describe your question/issue in the HELP section at
Julián OrellanaLevel 20 , Guayaquil
15 October 2018, 17:50
wich is the byte that says a separate line 10 or 13?
RomanLevel 41
16 October 2018, 06:07
Try to use the universal solution :)