Re: Padright

Tech-Archive recommends: Speed Up your PC by fixing your registry



""NAME","SYSTEM_ID","TAX_ID","LICENSE"";
the Above is one row read in from a text file

its 38 bytes in width i want to pad this to 77
in my code padright is not working correctly unless i string.trimend() the
above row
example

I was able to reproduce the problem in your code with the following
line:
sRow = "\"NAME\",\"SYSTEM_ID\",\"TAX_ID\",\"LICENSE\" \r";

Perhaps you are getting a Carriage Return (\r) and spaces at the end
of your line.

How are you reading in the line from the file?

.



Relevant Pages

  • Re: Padright
    ... its 38 bytes in width i want to pad this to 77 ... in my code padright is not working correctly unless i string.trimendthe ... If replying to the group, please do not mail me too ...
    (microsoft.public.dotnet.languages.csharp)
  • Padright
    ... its 38 bytes in width i want to pad this to 77 ... in my code padright is not working correctly unless i string.trimendthe ... //if i trimend this it works ...
    (microsoft.public.dotnet.languages.csharp)