string s=""; //s store retrieve data value. streamwriter sw; sw.writeline(s.substring(0,s.length<=30))
private string GetFormatedText(string Cont,int Length) { int rLoc=Length-Cont.Length; if(rLoc<0) { Cont =Cont.Substring(0,Length); } else { int nos; for(nos=0;nos Cont =Cont +" "; } return(Cont); }
s.Substring(0, 30)
s.Length<=30
if
while
if(s.length <= 30) sw.writeline(s); else sw.writeline(s.substring(0,30));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)