|
-
Jun 28th, 2002, 11:03 PM
#1
Thread Starter
PowerPoster
check out the left and mid functions
-
Jun 28th, 2002, 11:18 PM
#2
The picture isn't missing
here's code that will work:
VB Code:
dim buff as string
Open "C:\your file.txt" for binary as #1
buff = space(500)
get #1,,buff
open "C:\first part.txt" for binary as #2
put #2,,buff
close #2
buff = space(200)
get #1,loc(1),buff
open "C:\2nd part.txt" for binary as #2
put #2,,buff
close #2
buff = space(lof(1))
get #1,loc(1),buff
open "C:\3rd part.txt" for binary as #2
put #2,buff
close #2
close #1
test it and see if i had made any spelling mistakes in there.
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Jun 29th, 2002, 11:25 PM
#3
Hyperactive Member
kule
I got it all working, thanks all for your help... Specially James Stanich for the speedy reply and 'B.P' cause that's exactly what I wanted, lol.
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
Wak 
-
Jun 29th, 2002, 11:46 PM
#4
The picture isn't missing
yes it's amazing.... i didn't even write it in VB........
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Jun 30th, 2002, 01:23 AM
#5
Fanatic Member
Well, though the above method works, but I actually encourage
u to do like this:
VB Code:
Open File1$ For Binary As #1
FirstDat = Input$(500, #1)
SecondDat = Input$(200, #1)
'ThirdDat could be retrieved in three ways
ThirdDat = Input$(LOF(#1) - 700, #1)
ThirdDat = Input$(LOF(#1) - (Len(FirstDat) + Len(SecondDat)), #1)
ThirdDat = Input$(LOF(#1) - LOC(#1) + 1, #1)
Close #1
'Write the dats to the corresponding files
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline 
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
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
|