bartley20 / reddit-account-generator

Generate reddit accounts using the old ui
MIT License
0 stars 0 forks source link

Fix overwriting issue in writeUsers() method #3

Open sweep-ai[bot] opened 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR addresses the overwriting issue in the writeUsers() method of the main.go file. Currently, when generating Reddit accounts using the old UI, the data of the last account is being overwritten after generating 5 accounts. This PR modifies the writeUsers() function to open the file in append mode instead of write mode, ensuring that new data is added to the end of the file without overwriting the existing data.

Summary of Changes

Fixes #1.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/fix-overwriting-issue

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.