Hello, i am writing a program and i want to read from a file and create another and write to it, i already have most of it figured out but my problem is the file path, i cant create it to C:\ as it gives issues so i create them at C:\Users\[my username].
how can i get the program to get the name of the user and automatically put it there since my computer would obviously have a different name from anyone else's own?
its not essential but i thought it would be a nice touch if its not something hard to do lol.
Oh another question, how can i make the program open a text file after i finished reading/writing from it so that the user can see the results? or something similar to that. is there also a function to continue running after the notepad is closed?
thanks.



LinkBack URL
About LinkBacks



