opentext

OpenText Content Server Search API: Retrieve a file's category data via URL link in XMLformat?

六月ゝ 毕业季﹏ 提交于 2019-12-24 01:20:00
问题 I've been looking long and hard at documentation and have been googling non-stop but I am falling short. I am using the OpenText Content Server Search API. My goal: I would like to be able to fetch a file via URL, e.g. livelinkhost.mycompany.com?func=doc.fetch&nodeid=3670464" HOWEVER, I would like to be able to grab that individual file's data stored in its Category section and output it as XML using &outputformat=xml The documentation makes it seem like this is not possible and I feel I am

FileInfo.OpenText() Fails To Read Special Characters E.G. üò°

家住魔仙堡 提交于 2019-12-12 11:21:29
问题 Have some text files that display many characters as � in TextBox and TextBlock. How can I properly read and display these files in .NET WPF? File read where fi is a FileInfo. fileText = fi.OpenText().ReadToEnd(); In WPF I get the � character for ü ò ° and other special characters. Have tried multiple fonts. Culture is en-EN. If I read the file as a Stream I get the special characters System.IO.Stream fsIn = fi.OpenRead(); if (fsIn.Length == 0) return; int curInt = -1; StringBuilder sb = new

F# - fileReplace, overwriting words in txt, but when running it overwrites exisiting content in txt

筅森魡賤 提交于 2019-12-11 07:33:32
问题 open System //helpfunction let fileReplace filename needle replace = let replaceIn (reader:System.IO.StreamReader) needle (replace: String) = while not(reader.EndOfStream) do let mutable allText = reader.ReadToEnd() allText <- allText.Replace(needle, replace) reader.Close() //start let reader = System.IO.File.OpenText filename let newText = replaceIn reader needle replace let writer = System.IO.File.CreateText filename writer.Write newText ; writer.Close() // testing let filename = @".\abc