Hex Editing A File?

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


ADVERTISEMENT

.Net Editing A CSV (or Delimited File)?

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

.Txt File Editing On VB And Closing

Dec 31, 2009

i've continued making my Program and wanted to make an Control Panel for my Server.

[Code]...

View 3 Replies

Editing A Text File?

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

Editing Bytes In A File?

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

Editing Js File By .net 2010?

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

Editing The Tag Of An Image File?

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

Editing TXT File On Web Server Using .net?

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

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

Editing Files With No File Extensions

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

Editing A Text File In An Application?

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

Editing And Deleting Records Off A File?

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

Editing Bin File Parse Values?

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

Editing Offsets Of A Specific File In Hex?

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

File I/O And Registry :: Editing A Certain String In A .ini?

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

Editing Dll File In A Ready Made Project?

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

Editing Record In Random Access File?

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

VS 2008 Reading And Editing Text File?

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

VS 2010 Required With Editing Text File?

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

Write A Little Program To Allow Editing A Game File?

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

File I/O - Editing File Using CheckedListBox

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

VS 2008 - Releasing File To Allow More Editing In String Replace

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

VS 2010 Editing Text File Specific Lines?

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

Resource Folder - All Toolbar Icons Gone After Manually Editing File

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

Editing The "Connection String" In The Configuration File By The Code?

Oct 12, 2010

How To Editing The "Connection String" in the Configuration file by the Code in the Run time

View 1 Replies

How To Save Text To A File In Text Editing Application

Jun 22, 2010

I need help in how to save text to a file in the text editing application I created. Well, I tried using the code below but it didn't do the work:[code]

View 3 Replies

Reading An Editing A Text File, Line By Line

Sep 11, 2011

Basically, I'm creating an application which takes a list of words in .txt format, such like this:

Abc
Def
Ghi
Jkl
mno

What I want to be able to do is modify the words, one by one, so that I end with

Abc1
Def1
Ghi1
Jkl1
mno1

or whatever the user wants.

I created this app in C++ to get the logic, since I am more confident with that

View 4 Replies

[2008] Editing Text In Text File And Saving It?

Dec 7, 2011

I would like to be able to read data from a text file, be able to edit it and save the new edits to that file over writing the old ones.

Dim FILE_NAME As String = "C:cat4 ext.txt"
Dim TextLine As String
If System.IO.File.Exists(FILE_NAME) = True Then

[code].....

View 3 Replies

Set Focus To Editing Row

Dec 14, 2009

How do you set focus to a specific control in a datagridview row after clicking the edit button? I'm able to do it for a new row when the grid is binding, but not for an existing row. The control doesn't seem to exist yet.[code]

View 1 Replies

Editing .net In Netbeans?

Jul 22, 2011

My work dropped a vb.net program in my lap that I need to modify. Die vb. Anyway, I work in Netbeans and can't find a module that will allow for syntax highlighting of vb. Is there a creative solution out there for this that doesn't involve using a different IDE?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved