Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi there,

 

I'm just about banging my head on the table with this one, so I hope someone can help.

 

I'm making a Facebook application - I have a windows application that uploads a text file to my web server, and I want to compare the name of the text file to the first name and last name of the Facebook user, and if they are the same, then open the text file.

 

When I was playing around with it, I printed the path and file name, but it looked like there was a space before the file name and before the file extension. My original idea behind it was:

 


Dim Name As String = _fbService.fql.query("SELECT first_name, last_name FROM user WHERE uid = '" & Session("Facebook_userId") & "'")
	
	Dim File As String
    Dim s as String
	For Each s in Directory.GetFiles(Server.MapPath("/NowPlaying/"), "*.txt")
		File = GetFileNameWithoutExtension(s)
		If File = Name Then
			Response.Write(File)
		End If
	Next

 

It seems like it should be very simple, but nothing works!! Hope someone will be able to help.

 

Thanks

 

Dug

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...