Try writing it to a text document, and then re-reading it back, then delete the txt doc
Try this
vb.net Code:
Dim MyTempFilePath As String = My.Computer.FileSystem.SpecialDirectories.AllUsersApplication.Data & "\MyApplicationName\lvltxt.txt" Using sw As New StreamWriter(MyTempFilePath) sw.Write(My.Resources.ResourceManager.GetObject("filename")) End Using
'Then read it again with all your code that you were using before, (give or take some necessary modifications)
Then at the end
vb.net Code:
File.Delete(MyTempFilePath)
Personally I have a class called 'DirectoriesC' which has all my directories \ names for things like this:
vb.net Code:
Dim ad As String = My.Computer.FileSystem.SpecialDirectories.AllUsersApplicationData Dim ProgramName As String = "thething" Dim TempLvlExpName As String = "lvlxp_temp" Dim TempLvlExpExt As String = ".txt" Dim TempLvlExpPath As String = ad & "\" & ProgramName & "\" & TempLvlExpName & TempLvlExpExt
good for organizing things, especially large projects, where the names can change
Cheers
(Mark thread as resolved when your done, with little green post icon tick)




Reply With Quote