|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
fopen and reference
does anyone know the equivalent of fopen(PHP) in ASP and if so where can I read more about it? Also does anyone know a good reference for ASp where you can read about functions and so on?
/Johan |
|
#2
|
||||
|
||||
|
www.w3schools.com and click on learn ASP on the left side.
|
|
#3
|
|||
|
|||
|
Checking it out... thanks
|
|
#4
|
|||
|
|||
|
this function returns the text of a textfile, not sure if it's the best way to do it but anyway it works
Code:
Function descr(d,f)
'On Error Resume Next
dim output, fname, chktxt
fname=f
f=Left(fname, Len(fname) - 3) + "txt"
chktxt = instr(lcase(f), ".txt")
MYPath = d + f
Set Fconn = server.CreateObject("Scripting.FileSystemObject")
If Fconn.FileExists(MYPath) then
Set file = Fconn.OpenTextFile(MYPath,1,false)
output = file.readall
file.close
descr=output
Set Fconn = nothing
else
descr=""
end if
end function
|
|
#5
|
|||
|
|||
|
ok thanks. will try to work it out... thanks
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > fopen and reference |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|