martialarts
Well-known member
Hi. I am using VB.NET 2002 Standard. My program creates a textfile of multiples formatted lines. The lines appear similar to the following:
Magnesium 50 60 38 48 65 HIGH
Calcium 60 70 62 68 40 LOW
Albumin 10 20 12 18 25 HIGH
The program calculates the whitespace to output to the textfile to make the lines seem like a series of justified columns, similar to a table. The file is being written correctly, but when I open the datafile at a later time in the program, it destroys my perfect whitespacing and the columns are jagged and inconsistent. I am rying to place the text into a label, similar to a print preview. Streamreader and fileopen created the same results. Is there a way I can make this work or do I have to change the format of the text file to a delimited format such as:
Magnesium,50,60,38,48,65,HIGH
and then add the whitespace when I read from the file and output it to the label? Will this delimited format even allow me to add the proper whitespace and have it displayed correctly in the program? Thanks!
Magnesium 50 60 38 48 65 HIGH
Calcium 60 70 62 68 40 LOW
Albumin 10 20 12 18 25 HIGH
The program calculates the whitespace to output to the textfile to make the lines seem like a series of justified columns, similar to a table. The file is being written correctly, but when I open the datafile at a later time in the program, it destroys my perfect whitespacing and the columns are jagged and inconsistent. I am rying to place the text into a label, similar to a print preview. Streamreader and fileopen created the same results. Is there a way I can make this work or do I have to change the format of the text file to a delimited format such as:
Magnesium,50,60,38,48,65,HIGH
and then add the whitespace when I read from the file and output it to the label? Will this delimited format even allow me to add the proper whitespace and have it displayed correctly in the program? Thanks!