|
-
Nov 2nd, 2000, 06:48 PM
#1
Thread Starter
Member
I have a fixed field length ASCII file that I need to modify specific areas within the file (say line 2 position 4-10, line 3 position 13-19, etc).
I want to have a form that shows the data from the above mentioned lines in their own textbox, then allow the user to change the data in the textbox then save the file.
So, the only thing that would change in the file would be line 2 position 4-10 and line 3 postion 13-19.
What is the best way to do this? Anyone have sample code to get me started?
Thanks.
-
Nov 2nd, 2000, 08:08 PM
#2
Lively Member
if you want a certain spot in a file you could just load the whole text file into a string variable and use the
left(variable, character#) or right(variable, character#) procedure.....
-
Nov 2nd, 2000, 09:31 PM
#3
You may want to split it by vbNewline so you know what line you are working in without counting every character to get to the right line.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|