Taking inputs into a file directly from the analog to digital(ADC) pins

Is there a way or set of functions to directly convert the data obtained from an ADC pin into say a text file and store it.

Which module do you use? And what is the firmware version?
For Quectel Open solution we can make it.

Thanks a lot but issue is resolved now!