Parse .txt to .csv

前端 未结 6 960
说谎
说谎 2020-12-21 06:56

Is it possible to create a Java program which recognizes the text in a .txt file and write it in a .csv file? If yes,how would you start with such a problem?

My .txt

6条回答
  •  抹茶落季
    2020-12-21 07:17

    Yes it is possible. To accomplish your task read about Input- and OutputStreams.

    Start with a simple example. Read a line of text from a file and print it out on the console. Then do it the other way - write a line of text into a file.

    The experience you get through these examples will help to accomplish your task.

提交回复
热议问题