Question Saving with no filetype

KaosTheory

New member
Joined
Sep 13, 2008
Messages
2
Programming Experience
Beginner
Hey Guys

If this is in the wrong place sorry, Im new here

I have a bit of a thing i can't see to find anything about. What i need to do is save a file without any filetype. I currently have these files that i get that have no filetypes. I edit them in Notepad++ then save the file but without any extension.

Ive created myself an app the automatically does what ive been doing but when i save the file its putting the extension as a .DAT as the app i have does about 5 different files and this is needed on some but not these outputs

Any ideas how to save a file without any extension??

Any Help guys much appreciated.

Here is the save file dialog im using

VB.NET:
        ElseIf Form1.Selection.Text = "MNP GiveBack" Then
            Dim sdat = Split(Form1.OFD3.FileName, "\", -1)
            filename = sdat(sdat.GetUpperBound(0))
            Form1.SFD5.Filter = "|"
            Form1.SFD5.FileName = filename
            Form1.SFD5.InitialDirectory = dirarr(9)
            Debug.WriteLine(dirarr(9))
            Debug.WriteLine(filename)
            Form1.SFD5.ShowDialog()
        ElseIf Form1.Selection.Text = "" Then
            MsgBox("No Data")
        End If

Thanks
Charles
 
Are you saying you have a string like "file.dat" and you want to get only the string "file"? IO.Path class has a method called GetFileNameWithoutExtension that does exactly that.
 
Back
Top