I'm having trouble writing a few strings into my .txt file without them overwriting each other
This is an example:
for i in 1..100{
fs::write("*PATH*", i.to_string()).expect("Unable to write file");
}
I'm thinking it should write every singe one right after each other but it doesn't! It overwrites and when I open the document it's just the last written number.
I couldn't find anything on the web since this way of writing into files seems to be rather new.