Thank you for the information but it doesn't work with the 'Get #1, lngRec_Loc, strInput' because strInput is now an Array.
The reason I'm doing this is to retain the nulls in the record coming from file #1. I want a 2000 (not always, this will be a general purpose pgm to read diff. fixed length record sizes) chunk from the fixed length records in file #1.
If I Open the file with 'For Input' the nulls drop after reading it into the strInput string causing a problem when I parse the data.
ex: Data
ABCDEFGHI.JKLMNOP.QRSTU (Fixed length record for illustration '.' = null)
ABCDEFGHIJKLMNOPQRSTU (Open method = 'For Input' drops the nulls)
ABCDEFGHI.JKLMNOP.QRSTU (Open method = 'For Random' retains the nulls)
Using 'As Random' is the only way I know of that will retain the nulls so I can replace them with spaces.
Dim strInput() As Byte '*****
Dim intLength As Integer
Dim lngRec_Loc As Long
intLength = 2000
ReDim strInput(intLength) '*****
Open "D:\xyz_file.txt" For Random As #1 Len = intLength
Open "c:\xyz99_file.txt" For Random As #2 Len = intLength
Do Until EOF(1)
lngRec_Loc = lngRec_Loc + 1
Get #1, lngRec_Loc, strInput ' ******** Out-of-memory error
strInput = Replace(strInput, Chr(0), " ")
Put #2, lngRec_Loc, strInput
Loop
Close #1, #2
Unload Me
Sorry for being so long winded and thank you for all of your responses...I hope I'm making my self clear regarding this request.