spartan.monkey
Member
- Joined
- Oct 25, 2014
- Messages
- 12
- Programming Experience
- Beginner
Hello
i know that the code below can be used to creat and update a text file but is there a possibility that the path to the file can be saved as a string.
what i need is that i want make multiples text files each with a different number to store different sorts of strings.
further explaining:
i need the data path to be updated after a particular interval for example when i press the update button the path of file should be c://"filename_""rollnumber"
you can check out the my project at
http://www.csharpforums.net/c-general-discussion/2325-school-registration-system.html
Thanks
i know that the code below can be used to creat and update a text file but is there a possibility that the path to the file can be saved as a string.
C#:
{
string[] lineROLL = { "\nROLL NUMBER\n", rollnumber1.Text };
File.AppendAllLines(@".\file.txt"", lineROLL);
}
what i need is that i want make multiples text files each with a different number to store different sorts of strings.
further explaining:
i need the data path to be updated after a particular interval for example when i press the update button the path of file should be c://"filename_""rollnumber"
you can check out the my project at
http://www.csharpforums.net/c-general-discussion/2325-school-registration-system.html
Thanks