Writing Data to Text File

Writing Data to Text File

Comments

  • [font=Roboto, Arial, Helvetica, sans-serif]Hi, [/font][font=Roboto, Arial, Helvetica, sans-serif]We are getting data in a string after some modification in Data. So we are calling for each function, to work upon data . Can you please guide us on how can we write data for each string in a new line in same text file? So for example, The Data has first name (Bob, Becky) & last name(Smith. Brown) as input. Now, we want the name as (BSmith, BBrown) as updated data & we want the data in text file (.txt) showing BSmith in first row and BBrown in next row. Can you please provide us an example for the same?[/font]

  • Hello,

    So the goal here would be to take the first name input (Bob) and the last name input (Smith) to create an output combining the first letter of the first name and the last name (BSmith). Below I have provided an example of how you can accomplish this:

    [b][img]https://lh6.googleusercontent.com/6JxYk3fBaDsdh37KRA5hziSlsr4AJvvHLyRLmM5FA0mm1IwZ6_JTsQfHdZrP-LRTKD2vYW_wqFQl-e6PJubGHU1TX1VO5uRdtdNXJyO6HDJdSVad-F_qGgubPH3yhz56KnVYyfFT[/img][/b]

    What you see is the splitting of the first letter from the first name creating a two item list (B and ob). The next step would be to take the first letter (B) and the last name (Smith) and merge them into a single string. Lastly, that merged string will be set as our output to be placed into your text file. Every time you run a name through these steps, it should add it to the next row of the text file. I have taken the liberty of putting the description of the step as well as the searchable name of the step in the screenshot provided. Let us know if you have any questions!

Sign In or Register to comment.