Hi there, i want to ask if someone knows a way to convert string to a .txt file. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hi there, i want to ask if someone knows a way to convert string to a .txt file.

5th Apr 2018, 11:15 PM
Jason Rook
Jason Rook - avatar
3 Answers
0
Check out the STL library fstream
5th Apr 2018, 11:37 PM
Bebida Roja
Bebida Roja - avatar
0
uhmm sorry i forgot to mention i only know the basic stuff more or less. So how do i acces the STL library.
5th Apr 2018, 11:47 PM
Jason Rook
Jason Rook - avatar
0
the problem i have is to_string is not declared in this scope. thus : string ID2 = to_string(ID); ID2.append(".txt");
6th Apr 2018, 1:34 AM
Jason Rook
Jason Rook - avatar