text?
-
- Addict
- Posts: 1027
- Joined: Sun May 15, 2005 5:15 am
- Location: Australia
- Contact:
-
- Enthusiast
- Posts: 169
- Joined: Thu Oct 05, 2006 6:44 am
- Contact:
Плохо. Надо тебе, значит, получше русский выучить. Ну или переводчик помощнее найти... А то как же ты с нами по-русски беседовать собираешся, не понимаю что тебе говорят ?lexvictory wrote:Я все еще не понимаю
Don't try to catch ze Night !
Remember: 'z' is better zen 'th' =) !
Sorry for bad english.
Remember: 'z' is better zen 'th' =) !
Sorry for bad english.
-
- Addict
- Posts: 1027
- Joined: Sun May 15, 2005 5:15 am
- Location: Australia
- Contact:
-
- Enthusiast
- Posts: 169
- Joined: Thu Oct 05, 2006 6:44 am
- Contact:
-
- PureBasic Expert
- Posts: 2812
- Joined: Fri Apr 25, 2003 4:51 pm
- Location: Portugal, Lisbon
- Contact:
Hope this is what you need:
Code: Select all
If OpenFile(0,"myfile.txt")
Repeat
line.s=ReadString()
;If FindString(line,"string to find",0) ; You can uncomment these lines
line.s=ReplaceString(line,"string to find","string to replace")
;EndIf
WriteString(0,line)
;or
; WriteStringN(0,line) ; for line break
Until Eof(0)
CloseFile(0)
EndIf
Like this...
Code: Select all
Procedure.s ShortenPath(Path.s)
;
Protected HoldString.s
;
HoldString = Space(#MAX_PATH)
;
Debug GetShortPathName_(@Path, @HoldString, #MAX_PATH)
;
ProcedureReturn HoldString
;
EndProcedure
Debug ShortenPath("C:\Program Files\Microsoft Office")
Re: Sorry, this again I... Stop to laugh... Please... I have
> I gave 3 question. Can I get 3 answer ?
Hmm, I don't believe you're Russian. You're just taking the piss.
Hmm, I don't believe you're Russian. You're just taking the piss.

I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
-
- Addict
- Posts: 1027
- Joined: Sun May 15, 2005 5:15 am
- Location: Australia
- Contact:
Re: SADLY.... SADLY....
> No differences - believe or disbelieve
Okay, relax. It just looked very suspicious to me. Sorry if I offended you!
Okay, relax. It just looked very suspicious to me. Sorry if I offended you!
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
-
- Addict
- Posts: 1027
- Joined: Sun May 15, 2005 5:15 am
- Location: Australia
- Contact:
Re: Let it seems I from New York and there whole life there
are you looking for a way to find a specific file?spioner wrote:Let it seems I from New York and there whole life there was. 90 years... Now, 91 year, I want get path to File.txt
But, can I this do ?
Windows, File.txt, I know he is found. As I can get his way ?
or is it that you want to let the user select a file?
in case it makes it easier to understand, I'll put it in russian aswell
вы ищете дорога найти специфически архив?
или оно что вы те препятствуйте потребителю выберите архив?
Demonio Ardente
Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!