Verification text file
-
hi I want to please your comments and advice in a project: the idea is to write and read from a text file format by checking the size of what is going to write or read, is like creating a table in sql server and fill in according to the size of variables declared if you Propostion in that sense I thank you very much.
-
hi I want to please your comments and advice in a project: the idea is to write and read from a text file format by checking the size of what is going to write or read, is like creating a table in sql server and fill in according to the size of variables declared if you Propostion in that sense I thank you very much.
This isn't very clear, but I think you are asking for help on how to write out a fixed-width column text file? You can use a StringBuilder object to append lines. You can use the PadLeft and PadRight methods on a string to create equally sized columns. If this is not what you are after, please clarify your question a little. Cheers,
-
This isn't very clear, but I think you are asking for help on how to write out a fixed-width column text file? You can use a StringBuilder object to append lines. You can use the PadLeft and PadRight methods on a string to create equally sized columns. If this is not what you are after, please clarify your question a little. Cheers,
-
ok, i should write in the text file to a value that must not exceed 14 characters, how to do that???
Check the value of string.length to make sure it doesn't exceed 14:
if (!yourstring.length>14)
{
// blah
}Cheers,