Windows(CR LF) to Unix (LF)
조회 수: 88 (최근 30일)
이전 댓글 표시
I am using the matlab function "writetable" to creat a .txt file that I can open with Notepad++. However, Notepad++ opens the document as Windows (CR LF), but I would like it to automatically open it as Unix (LF). Is there a code I can use in matlab to fix this?
Thank you.
채택된 답변
per isakson
2019년 3월 14일
편집: per isakson
2019년 3월 14일
You have a few options
- Open the file in Notepad++ and replace CRLF by LF as shown by the screen clip below.
- Use the solution, "Better control of the format", which I provided in my answer to your previous question. AFAIK: writetabel() doesn't let you control the new line character.
- Use writetable() and thereafter read the file, replace CRLF by LF, and overwrite the text file.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Search Path에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!