I'm trying to create a virtual intelligence system, and hosted the language files in my FTP. These files are from a language I made myself, called SVDB, and hosted on FTP, and when I download in the application the text file it comes with HTML. This is the original file (hosted on FTP):
default {
wrong: "Desculpe, não entendi";
language-name: "Português Brasileiro";
language-code: "PT-BR";
version: "1.0";
}
replace-strings {
R0001: "vc|você";
R0002: "td|tudo";
}
K00001 {
input: "olá|ola|oi|eae";
output: "Olá!";
action-id: "";
}
K00002 {
input: "tudo bem?|você está bem?";
output: "Estou bem, obrigado por perguntar.";
action-id: "";
}
And this is what WebClient.DownloadString()
low:
ItdropsacodetotallynothingtodowithwhatIwant,andtheSVDBparseroftheerror.Thisistheaddresswherethefileishosted:
link
And this is the code I'm using to download the file:
Public Function GetLanguageServer(ByVal LangCode As String) As MainServer
Dim v As New WebClient
Dim s As String = v.DownloadString("http://server-advenker32.66ghz.com/Panthon/Server/Langs/" & LangCode.ToLower & "/input.txt")
Return TextParser.ResolveServerFromString(s) ' o Parser tenta entender o que foi baixado aqui
End Function
So, how do I down the file from a formatting like the original shown up there?
Note: The permissions of the hosted file are code 744 (Public Read Permissions)
Note: The file is hosted on my uHostAll company FTP.
Note: When trying to access the file through the browser, it appears correctly and without any problem.