khadem1386 Posted April 23, 2007 Share Posted April 23, 2007 HiOPEN "aaa.dat" for RANDOM As #1I have many data file that make and read by this command in VB:and now I want make ASP page and reading this Data.this Data have RANDOM format (binary) as you know.I want using of this without translate this data file, to SQL or Access (MDB).I want reading aaa.dat directly in my ASP(VB) page.is work OPEN and RANDOM command to ASP(VB)?thank for your help. Link to comment Share on other sites More sharing options...
Yahweh Posted April 23, 2007 Share Posted April 23, 2007 HiOPEN "aaa.dat" for RANDOM As #1I have many data file that make and read by this command in VB:and now I want make ASP page and reading this Data.this Data have RANDOM format (binary) as you know.I want using of this without translate this data file, to SQL or Access (MDB).I want reading aaa.dat directly in my ASP(VB) page.is work OPEN and RANDOM command to ASP(VB)?thank for your help.VB6 and Classic ASP use different syntax for opening files. To open a file in ASP, use this code:<%dim fs,f,xset fs=Server.CreateObject("Scripting.FileSystemObject") set f=fs.OpenTextFile(Server.Mappath("aaa.dat"),1,false)x=f.ReadAllf.close Response.Write("The text in the file is: " & x)%> Link to comment Share on other sites More sharing options...
khadem1386 Posted April 23, 2007 Author Share Posted April 23, 2007 OpenTextFile is only for TEXT filesBut random file is a format that contain recordsand you use GET And PUT for manage it.you can write a Dim (10,10,2) in a record By PUT command.and now I want open a RANDOM file.the format a Random file is such this lines: (binery)lpܕދ܊ݽڤ܉ؗ٭ԴԾѪі̮˃˕ɞˋȪlpܕދ܊ݾڥ܉ـ٭ԵԾѪѕ̮ˁ˕ɜˋȨmoܖތ܋ݾڦ܊ف٭ԵԾѫѕ̮ˀ˕ɛˋȧmoܗލ܌ݿڧ܊فٮԶԾѫє̯ʿ˕əˌȥnoܘގ܍ހڧ܋قٮԶԽѫѓ̯ʽ˖ɘˌȣnnܙޏށڨ܌كٮԷԽѬѓ̯ʼ˖ȮˌȡonܚޏI have many of this file that work in VB good (it work with GET and PUT and OPEN commands)BUT I want use its in ASP.random and Dim together are a good tools for saving 3D or 4D Data ( dim (10,10,2,5) as String ) but I want use to ASPlike itI have some 4D or 3D DATA not only 2Dthank you for you help Link to comment Share on other sites More sharing options...
khadem1386 Posted April 24, 2007 Author Share Posted April 24, 2007 is any method for manage 3D or 4D Data in ASP? Link to comment Share on other sites More sharing options...
justsomeguy Posted April 24, 2007 Share Posted April 24, 2007 You can serialize a complex object to save it as a string, and unserialize the string to rebuild the object. Check here:http://www.google.com/search?client=opera&...-8&oe=utf-8 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now