I need to build a table inside a file.txt. Actually, I have some Ideas on how build it, but I’m not so sure. I have some fields and it’s values I just need to build a table using these fields’ name and it’s values, like:
========================================
ID MATRICULATION NAME
2 696969 Jose
4 969696 Maria
5 123456 Eminem
15 123412 Ghaleon
How may I do it? I guess it’s using StreamWriter but I don’t know how to make the spaces because just using spacebar does not work.
Use format when writing string to file:
Syntax of format is following:
length is the minimum number of characters in the string representation of the parameter. If positive, the parameter is right-aligned; if negative, it is left-aligned