Simple Wav File Editing ?
Feb 15, 2010
I'm looking to take a small snippet out of a wave file which I can do by reading in the headers, calculating time in to samples and selecting that data back to another file with the headers appropriate for the new smaller chunk.
My question though is does anyone use a nice small free library that does something like this. With the numerous different versions of wave files and headers not matching I'm trying not to re-invent the wheel and if someone has done it already and can handle these discrepencies that would be amazing. If not I'll fire up the kettle and get the coffee on.
View 1 Replies
ADVERTISEMENT
Jul 22, 2010
I know this sounds simple to the majority of the database gurus out there but I am finding it difficult to find anything related.I am using Visual Studio 2008 VB.net winforms application.I have a form which contains a datagridview. what I want to do by push of a button is set the field "OnHand" either to default or 0. The 'either or' is really for you guys. Which ever one works the best in terms of reducing code or functionality is obviouls prefered.Once the 'OnHand' Fields in every record has changed then I would like to save all the data back to the database'This is more than likely very simple I just cannot find anything that discusses this kind of thing.
View 1 Replies
Oct 10, 2009
I have this 40 mb (game) file.The only way to change certain lines in it, is using hex editing software.For my program, I need to change a certain texture in this file.But when I use a streamreader in combination with a streamwriter, the resulting file is a lot smaller and when I load it, the game crashes.How can I hex-edit and replace a certain string in this file?(I use visual basic .net express edition 2008)
View 9 Replies
Jun 15, 2012
I would like to know a way (of course I want to know the best way) to edit a csv file, preferably without having to read the original and write the results to a new one.
Example 1: I want to split the contents of a column into two columns 123abc into 123, abc
Example 2: I want to remove letters from the beginning of a column AB123 into 123
Clarification: I do not need help solving my examples; I just need to be pointed in the right direction of reading and editing the same file.Here is a code example of using a temporary file that seems to me is too slow
Dim currentLine as string()
tempFile.AutoFlush = True
Do Until origFile.EndOfData
[code]....
View 2 Replies
Dec 31, 2009
i've continued making my Program and wanted to make an Control Panel for my Server.
[Code]...
View 3 Replies
May 12, 2010
I'm trying to edit a text file and below is a txt file I'm using. I would like to put the values from the textbox1,textbox2 and textbox3 into line text data under [TEXT1]
ImageMaster Created: IM Version 4.12
[GLOBAL DATA]
Relay Signal Initial State=OFF
Relay Signal Trigger=
Relay Signal Reset Trigger=
[Code]...
View 5 Replies
Mar 26, 2010
I'm trying to edit the bytes in a file. Using this code:
Dim stream As Stream = File.Open("file.exe", FileMode.Open)
stream.Write(File.ReadAllBytes("srcfl.exe"), "0446335", "srcfl.exe".Length)
View 3 Replies
Mar 11, 2012
I want to know how to get the name of the profile's default of Firefox by vb.net and how can i editing Js file on vb.net < like i want to insert txt on the je file Under the line number 47?
View 9 Replies
Aug 9, 2011
I am renaming Image Files in my app. using the following code stringMy.Computer.FileSystem.RenameFile(NewImagePath, Title & " " & ID & ".png")
View 11 Replies
Apr 17, 2012
I am creating a Flash fully-animated website for a customer, that reads its text and images from an outsource (on the same web host).They requested an admin page to edit the text and images.I am thinking of making a asp.net page that reads the text file into a dynamic textbox.The user can edit it then save it, so the Flash player would read the new text.
My question is, do I need to create an FTP connection with the authorization username & password?Since the asp.net web page would be on the same server, can it open the txt file and edit it and overwrite it without the need for FTP connection?
View 1 Replies
Jan 13, 2009
the problem is I'm trying to access a file that has no file extension. I think you can see why this is so difficult. The specific file I'm trying to edit is the hosts file (C:\Windows\System32\drivers\etc\hosts).
View 2 Replies
Jan 5, 2011
how to edit a text file that I have placed in a folder inside my application. The path to the file is "G:MyStuffEvolution_ Data_Extraction_v1Text Filess.txt" and I use a StreamReader to edit the file. However, once the file is edited, if I open the file in Microsoft Visual Studio 2010, the file is empty. Can anyone tell me how I can change? I also fear that once the application is deployed, the file path will no longer work as it will no longer be on my G: directory.Help Is A Click Away - http:[URL].....
View 6 Replies
Dec 4, 2009
I have a file with information about people, and use the following code to show the contents ofthe file in a list box..
[Code]...
View 1 Replies
Jan 15, 2011
I am editing BINary file and i need to parse some values from it without corruption of file, unfortunately I was try everything, but I dont know how to parse it on the byte level. I know how to read, write, search bytes from files but not how to parse it.
View 1 Replies
Jun 19, 2011
I'm using Visual Basics 2010. I'm looking to develop a program that edits certain bytes at a specific offset in Hex. The only problem is, I can't figure out how to edit a file in Hex, through Visual Basics programming.
View 5 Replies
Aug 27, 2008
Anyway what im trying to do is create a launcher for a program (a game) and i am in need of assistance on this one thing Basically its an options window, i need each of the custom options to be saved to the INI file, for example
Default:
resolution 800 600
fullscreen 0
[code]......
View 19 Replies
May 3, 2012
I want to be able to use the core frotz library (dll) in a different project (no WPF front end). The dll needs to accept an entire string command as the input, and produce the entire output as a string. Produce this dll and the source of the class showing me how you did it.
View 1 Replies
Jan 30, 2010
I am using Visual Basic 2009 to create a file of records to store students tests scores.Currently i can write to the file, create new records etc. However i cannot edit a particular record, im sure i have to use file seek function but i have no idea where to start.here is some of my source code to give you an idea of where im at
Do While (Not EOF(1)) And found = False 'loop until no more records or the record is found
nosrecords = nosrecords + 1
FileGet(1, onestudent, nosrecords)[code].....
View 3 Replies
Jul 23, 2010
I have a text file called: list.txt This is a list with all kind of lines like this:
14II_ARM_S_CLO_CLO_CLOVERIDS_PROPITEM_TXT_01194611IK1_ARMORIK2_CLOTHIK3_CLOAK=TRUE==200050000====PARTS_CLOAK=1==11=1===11_NONE Ofcourse every line has different numbers and letters.
The complicated bit is this:
I want to let Button1 check whats in TextBox1.Text and search "list.txt" for it. When it has got a match (there is only ONE of these numbers in list.txt).For example TextBox1.Text = "IDS_PROPITEM_TXT_011946". And I search for that so I find the line above. Now I want 3 other textboxes which show the 21st, 22nd, 23rd column/number after "IDS_PROPITEM_TXT_011946". And they should be editable by changing those 3 textboxes and clicking the apply button.How can I best do this, and please give a little example.
View 11 Replies
Jun 20, 2012
I have two text files, first text file looks as follows
File1
String1 String
String2 String
String5 String
String8 String
These fields match some of the fields in my File2, but here there is an extra column which shows a numeric field for that row.
[Code]...
View 8 Replies
Jan 27, 2012
I've been banging my head for a while now and just can't seem to figure out what the problem is here. I have not really worked with XML much and thought it would be good to do some work with it in order to have a better understanding. I decided to write a little program to allow editing a game file. I found some examples on the net of basic XML functions and tried to use one of them in my program.
The Xml file I am working with is huge so I will show just enough to give an idea of the format.
Code:
<?xml version="1.0"?>
<Proto version ='2'>
<Unit id ='0' name ='InvisibleProjectile'>
<DBID>20</DBID>
[Code]...
I have tried different text in the select nodes portion, such as "proto" "/proto" and the above but in every case I get a count of 0 on the node list and nothing is displayed in my textbox.Each <Unit> is roughy 30-35 lines and the file has over 59k lines of units so clearly the count should be rather high but always 0.
View 2 Replies
Feb 14, 2012
The idea is to comment and uncomment lines in the httpd.conf file to load and unload modules. This is what I have so far, working, but not always, somehow. But in any case, I don't think this is the proper way of doing this. Any suggestions? [Code]
View 1 Replies
Dec 14, 2010
I am new to using visual basic 2005. I have a tutorial book and I have followed it but it does not help me understand. I have a limited understanding of the net framework and the drag and drop features.
What I want to know is this: How do I make a simple name and address tracker file that I can enter data and save it as a file. The book does not cover this proceedure but It is what I want to do.
IE: Start VB2005 start new windows app. Name (whatever) drag 2 label's and 2 textbox's and one button for saving data entry. I want this program to enter name in textbox1 (press enter) then enter address in textbox2 (press enter) then save file (whatever name) when you click the button.
View 2 Replies
Jun 1, 2010
Trying to use a str = Replace, but having issue. Seems that after it does the first string replace it will not let go of the file or the Dim or something???
'Make first file
Private Sub MakePwdFile()
Dim fso, inputFile, outputFile
Dim str As String
fso = CreateObject("Scripting.FileSystemObject")
'1 means for reading
[Code] .....
View 10 Replies
Feb 13, 2012
I'm new here and I'm trying to make a little program with Visual Basic (2010 Express Edition).The purpose of this program is:
1) Load the text file lines and split them into a constant and a value
2) Edit the text file lines values
The content of the text file is like this:
[Code]...
This basically split every lines in two parts: the constant ("Name", "Surname", "Age", "Hair") and the values ("Mario", "Rossi", "50", "Black").Now about the second point, I've added a Button1 which should take the Textbox1/2.Text and the Combobox1 selected item and replace the values(aka separator(1)) in the text file. The problem is I don't have any idea at the moment how to do it. What method should I use?
View 19 Replies
Dec 9, 2011
I deleted 3 old pictures from my resource folder. When building compiler alerted me to missing resources. Stupidly i manually edited the file and all my Toolbar icons are gone. Interesting enough the menu strip text all vanished and so did my status strip text. I managed to add back the deleted lines but still the same. If i delete the toolstrip all its buttons remain. Manually deleting each control, rewriting we are talking hours and hours of work.
View 5 Replies
Jun 10, 2011
Is there anyone can post a simple code using vb,that start building a simple games ?
View 2 Replies
Oct 3, 2011
I have a large file (typically more than 1GB) with following format[code]...
My question: Is there a simple way to trim the header information without have to read the content part and save to disk again? I mean I just need to modifying the existing file and delete the header part.
View 3 Replies
Jan 20, 2010
I have a dbase.txt file with some data in it. i.e -
Institution Course StudentID
XZY ABC 2010-1111111 "the spaces between columns is one tab space"
XYZ ABC 2010-1222222
XYZ ABC 2010-1333333
I want to perform simple SQL like operation - i.e -
SELECT * FROM dbase.txt or
SELECT Institution FROM dbase.txt WHERE StudentID=2010-1111111 and an insert operation like -
INSERT dbase.txt VALUES (XYZ ABC 2010-1444444)
I have written some code which is not even closer to what I mentioned above. My program can read only the whole text file. There is a menu, but not functioning well, as well as my write function which is not working at all.
Below is my code -
Imports System.IO
Module Module1
Sub Main()
Dim intInput As Integer
Console.WriteLine("Main Menu")
[Code] .....
View 4 Replies
Oct 17, 2010
I want to make a simple file downloader that downloads files off the internet partially executables from [URL]
What I am after is when I click on a hyperlink label it downloads the file or comes up with the Dialog box to download the file off the internet all of which will be executable files
View 1 Replies