I have some personal information stored in a plain CSV file personal_info.csv
in the following format:
personal_info.csv
83 Fancy Avenue,Nowheresville,Gotham City 24061
123 456 7890
someone@xyz.com
I need to populate the relevant fields of the below main.tex
(non-working/mockup) using class moderncv
with this personal information as shown below.
Mock-up (non-working concept) of main.tex
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\firstname{John}
\familyname{Doe}
%% NOT WORKING MOCKUP! (Relevant content to be read from csv file `personal_info.tex`)
\address{\firstfieldofline1}{\secondfieldofline1}{\thirdfieldofline2}
\phone[mobile]{\firstfieldofline2}
\email{\firstfieldofline3}
\begin{document}
\makecvtitle
\end{document}
to produce the desired output main.pdf
(compiled with pdflatex
).
How can this be achieved?