1
Answer

appending spaces to fixed length file

Sriraman

Sriraman

19y
2.5k
1

I am new to this forum and also to C#.
I need to write data from database to a text file which is a fixed length file.
I am using a dataset reader to get the data and writing it to the file. but the problem is i need to append sufficient spaces to each field. how to add spaces and trim each field to specific length from C#?
Pls help

Answers (1)
0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 14y
I am not sure what aspspider allows you to do. Normally you would write a program that executes as an ASP application in the host (aspspider), not in client computers. If aspspider allows remote connectins then you might not need to use WCF.