458
459
460

Red Pill TheoryHow to Meditate: The Easy Steps (self.TheRedPill)

submitted by erniesmoove

Meditation has nothing to do with religion or spiritual practice. It has been scientifically proven to be the best exercise for keeping a healthy mind. Its “lifting” for the mind.

First, here is a though concept you need to digest. The mind is just a tool for you to use and the voice inside it it’s not you. You are the one that is aware of it, the one that can hear it.

When you build the habit of meditation you can hear that voice speaking all day long, because that is his job. To look for problems to solve, to comment on the shitty weather, to think of your ex, etc. And most of the time it is speaking shit about you. But when you know that whatever it says is not true, it’s just its job to say things, you stop taking it seriously.

The kind of meditation I’m about to describe is called: Mindful Meditation or Vipassanā in Buddhism.

Mindfulness is the ability to know what is happening in your head in any given moment without being carried away by it. What is commonly known as: being in the moment.

This gives you the ability to respond wisely to any event. Being mindful will give you a choice in any situation to take the right approach and not be carried away by your thoughts like a mad dog.

And just like learning a new skill, it takes time to master.

There are two approaches to this.

1) When you go to a place to meditate to reduce distractions. (example: your room)

2) When you meditate any time during the day without going “alone”.

1) Going alone

Do this at least 15 minutes a day.

  • Set an alarm before you do it, to avoid thinking about the time.

  • Sit with your back straight.

  • Do not close your eyes completely and choose a fixed point in front of you to stare.

  • Now, bring your attention to the FEELING of the breath. (It can be on your stomach, throat, nose, etc.) This will be boring but do not worry we all feel this at first.

“The whole game is just to notice when your mind is wandering and to come back to your breath, over and over and over...And when you do that, it is a bicep curl for your brain.” Dan Harris.

Whenever you’re attention drifts, GENTLY bring it back to the FEELING of your breath. DO NOT FIGHT IT OR GET ANGRY.

At first your thoughts will suddenly take you away like a furious train. This is normal. You are breaking a life time habit and the mind will not give you an easy fight. It will try to fool you because you were so attached to it. You will have fear, because it will be like losing yourself. Do not go with this. Stick to your mission, be consistent.

2) Anytime

You can meditate wherever you are. It is difficult because distractions will be more likely. But if you find yourself “bored”, waiting in a red light or in a doctors office, walking down the street, eating: choose to meditate. Make a choice to be where you are and observe what is happening. Stop playing Candy Crush. Exercise your mind. Actually feel and see the world around you.

Edit

For beginners:

9 minute Guided Mindful Meditation by Sam Harris


[–][deleted] 127 points128 points  (15 children)

Funny that this post has so little attention. Meditation really is the last thing that anyone wants to do. It always comes after working out, hobbies, career, video games, partying, browsing reddit... then maybeeee some meditation if I can squeeze it in. I get it. You're literally doing nothing. What a waste of time! I remember when I first meditated, it hit me like a ton of bricks: this is the one thing I've been avoiding my whole life - the present moment. And then you realize that doing nothing does more for you than any anything else ever will. I'm always happy to see a meditation post.

[–]erniesmoove[S] 46 points47 points  (13 children)

I still dont know why meditation isnt in the sidebar. It is probably one of the most important skills to master.

[–][deleted] 5 points6 points  (0 children)

I agree. I'd be happy to see this post or a similar one in the sidebar.

[–]Senderious 2 points3 points  (1 child)

how long do you do it and how many times per week? I tried headspace but it's not my thing

[–][deleted] -2 points-1 points  (7 children)

I find it comical that you think anyone could master meditation. Buddhists don't practice it to become enlightened. I'm approaching it from a spiritual aspect, but still can't see how mindfulness can be mastered even without spiritual context.

[–]TwoThirteen 4 points5 points  (3 children)

Did you read the part where he said it brings you into the here and now? That's the state of mindfulness if you had not.

[–][deleted] 0 points1 point  (2 children)

That is being in the here and now. The Zen approach is to stop grasping at it. Like telling yourself not to think of a pink elephant, you can only think of a pink elephant. How are you in the here and now if you stop to ask yourself, am I in the here and now? How can you be enjoying a movie, if you have to stop to ask yourself "Am I enjoying the movie?".

[–]morphite65 1 point2 points  (1 child)

How can you be enjoying a movie, if you have to stop to ask yourself "Am I enjoying the movie?"

It seems to be a difference in opinion of total personal control vs total "letting go"

[–][deleted] -2 points-1 points  (0 children)

Letting go includes attempting total personal control, and yet at the same time promotes total personal control, as that is human nature. In Buddhas have let go of everything, this includes letting go of letting go.

[–]erniesmoove[S] 2 points3 points  (2 children)

Being aware of your thoughts has nothing to do with spiritualism because it doesn’t require "thinking" to understand anything further than what is happening right now.

I recommend you take a look at Sam Harris "Waking Up". He makes a scientific and non-spiritual approach on mediation which can help you with your doubt.

[–][deleted] -2 points-1 points  (1 child)

Not being aware of your thoughts, but the idea that you can master meditation or mindfulness. If simply reacting to, and not hesitating before action, is the natural state, how do you practice not practicing?

Like old Japanese martial arts teachers. First they would have their students run a relatively normal life with chores and work, but would tell them that the teacher could strike them at any minute and to be prepared. The more the student tries to prepare for the attack, the more he fails. Until he stops preparing and simply reacts to the attack he cannot move forward in training. He's trying to prepare for the unprepareable

[–]GoldenCocaine 42 points43 points  (2 children)

Meditating has been key to my success. It is like working out your mind. It brings peace and mental clarity like I've never experienced before in my life.

It also really makes sleeping at night much easier, as I meditate before bed. It will teach you self-discipline, and help your psychological state. You will learn more about yourself and your emotions than ever imagined. It will teach you to control your own thoughts, emotions, and actions like never before. It then later helps me come to peace with things and keep frame. Balance in life is everything.

Look up Zen meditation and try it, seriously. Don't just bullshit it though or it won't work.

I feel like I sound dumb when I tell people to try meditating... but seriously.... DO IT.

[–]pag_el 2 points3 points  (0 children)

Hm, might just try it then.

[–]LivingUnplugged 23 points24 points  (3 children)

Because I guide meditations and have been meditating since I was five... There are two fundamental foundational meditation techniques. I've found that alternating the two makes for an invigorating experience that is both calming, focusing, energizing and enjoyable. I look forward to meditating not only for what it brings, but equally because the anticipation and actual practice of it are enjoyable as well.

  1. Concentration Meditation (Samatha)

  2. Mindfulness Meditation (Vipassana)

1. Concentration Mediation (Samatha)

In Concentration Meditation, we bring our awareness onto a single point of focus. The most common and popular focal point is the breath - specifically, the sensation of the breath as it passes over the skin on your upper lip, just below your nose. Concentration is a narrowing and focusing of awareness. The smaller the area of awareness, the sharper the concentration can become. As you become more and more focused, you will notice such things as the variation in temperature of the breath as it passes over your upper lip. COUNTING is a powerful tool for staying focused. On the in-breath, think "one", on the out-breath, think "one". Continue this way until ten, and then start over. The Zen tradition suggests that most meditators must practice breath counting for at least three years before their minds are capable of staying with the breath unaided. I've found that there are good days and bad days, good moments and bad moments. Without judgment, I will use counting when I find myself easily distracted by other thoughts (90% of the time). Sometimes, when I notice that my awareness stays just on the breath, or in it's close vicinity, I will let go of the counting. This is a nice feeling. Concentration meditation is the practice of coming back to the place of calm awareness. When you allow your awareness to just settle and to no longer be pulled back and forth by emotion-bound thought burps, you find peace and calm naturally.

2. Mindfulness Meditation (Vipassana)

This is the fun stuff. Vipassana, as taught by Goenka involves guiding awareness from the top of the head to the tips of their toes. This practice is called body-scanning. The practice involves keeping your awareness moving slowly, consciously, carefully from one area of your skin to the other, moving down and up your body, WHILE maintaining the calm you cultivated through Concentration Meditation. Being able to move your awareness while remaining in a state of equanimity is the essence of the practice. It's easy to see how this practice can help you deal with every day life. It's easy to be calm and peaceful if you're just focused on one thing. It's an entirely different game to be able to consciously guide the smooth movement of your awareness while keeping an eye on your equanimity levels simultaneously.

Goenka is a boss. Anywhere in the world, justabout, you can attend a free 10-day Vipassana retreat at one of Goenka's centers. All retreats are funded by donation. All teachings are practical. Buddhist philosophy and insight is discussed but the practice is presented as separate from any spiritual trip.

Other forms of Vipassana exist. One such is "Choiceless Awareness" - or being aware of whatever it is that comes into your awareness. Whether that's the sound of the neighbors downstairs or the jet overhead or your sister shouting in the next room or a thought of yours about a bad social interaction last night. With Choiceless Awareness, we simply acknowledge the object which has attracted our attention, and then let it drift back out of our attention. About 20% of your attention should be on your breath and about 80% of your attention should be on the phenomena entering your mind through your other "sense doors" (Touch, Sound, Sight, Smell, Taste, Thoughts) - noticing these phenomena as they arise and as they pass away. Choiceless awareness is a hard ask unless you are really quite calm to begin with and unless you are really quite good at remaining calm. "Naming" is a helpful tool for remaining in an equanimous state while practicing Choiceless Awareness. Naming the phenomena which has attracted your awareness allows you to create distance between you (your awareness) and the object of your awareness. For example, if the noise of a plane has attracted your attention, you might say to yourself, "sound", before returning your awareness to the soup of sensations that is your in-the-moment experience of life.

Ultimately, with Vipassana, you will come to realize the transitory and impermanent nature of all phenomenon, all things, all resultant emotions, and even the sense of self. All things arise and pass away. Our experience of the world is simply an unending array of sensations arising and passing away. Coming to the deepest level of understanding of these insights, according to the historical Buddha, results in enlightenment.

[–]disorderly 2 points3 points  (0 children)

I did the 10 day Vipassana course and it was one of the hardest things that I've ever done in my life but extremely rewarding. I'm not a "hippy" or even very spiritual but I went with an open mind and found that the techniques that they teach you really do work.

I highly recommend it. Just be prepared to give it 100%.

[–]bebestman 0 points1 point  (0 children)

Meditation, much like physical exercise, comes in many forms. I find it sad that pretty much only one version is teached in the West, so any information on the myriad variants is appreciated.

[–]jackshloggensberg 0 points1 point  (0 children)

Also mention that Concentration should be practiced first as a base before doing mindfulness. Mindfulness can fuck with your head if you're not ready. Ego death is scary.

Concentration is the best way to build discipline. If anything that's the equivalent to lifting weights. Mindfulness is necessary for enlightenment and is about gaining insight into the true nature of reality.

[–][deleted] 12 points13 points  (2 children)

Good information. If you catch yourself straying from the attention on your breath, instead of bringing yourself back to your breath, focus instead on your distractions. Chant, in your head, to yourself, Distracted distracted distracted, Or thinking thinking thinking. If you're caught up in an emotion triggered by your thoughts chant the name of the emotion. You can be mindful, without focusing on your breathing.

[–]erniesmoove[S] 3 points4 points  (1 child)

I tried doing just that a few years ago. Saying to myself whenever I got lost in thought: "thinking". But by saying that I got involved in the thinking and that can be tricky. Remember you are just sitting in the theatre watching a movie, just watching, nothing else. If you say something you are not longer "watching only".

[–][deleted] 2 points3 points  (0 children)

Well, Approaching from a Zen Buddhist direction, I don't think it's necessarily bad to be thinking, as long as you're aware that you are thinking and that what ever you are thinking about are only thoughts and do not reflect the outside world. Being zen is just being without thinking about just being. So If you're thinking, and say to yourself, "stop thinking", you're really just running around in circles trying to just be. Video games are a good example, you get so enthralled with the game that you're just playing, you don't keep telling yourself "just play". But of course, you can't accurately describe zen with words.

[–]EmperorAurelius 8 points9 points  (8 children)

I've been trying off and on for a year now. I recently bought a book titled Mindfulness in plain English. It's pretty good. However, the actual practice of meditation is pretty hard. I have to fight myself to do it everyday, and when I do actually do it it's a struggle. My mind is an unstoppable train-wreck of thoughts. Mostly of the negative kind. I find myself getting upset when I drift into my thoughts. I'll stick with it though, as I know this is part of the process.

[–]erniesmoove[S] 2 points3 points  (6 children)

Do not be mad. Everyone goes through that at first. Just keep going, try harder and relax. It also depends on how much multitasking whe do everyday. Develop the habit of just doing one thing at a time and forget about youre cellphone.

[–][deleted]  (1 child)

[deleted]

    [–]erniesmoove[S] 0 points1 point  (0 children)

    By focusing on the present you are relaxing. It is an exercise on peace of mind. Being consistent in the mastering of this skill is key to achieving a more focused and happy mind.

    [–]boozemunkee 0 points1 point  (2 children)

    I have tried meditating and I find it makes me feel so ashamed or some emotion along that lines cuz I just can't seem to do it and I don't really now how to proceed.

    [–][deleted] 2 points3 points  (0 children)

    When you meditate, you measure success not by "is my mind quiet?" but by "am I making an honest effort?" If you sit down and gently try over and over to empty your mind, but thoughts keep coming back, then you're doing it right. You're meditating successfully. It is having an effect.

    I know it feels stupid, but that's your ego talking. Just keep doing what you're doing.

    [–]erniesmoove[S] 0 points1 point  (0 children)

    Now you know how to proceed, just follow the instructions on the post.

    "Truly learning to meditate is not like going to the gym and putting on some muscle because it’s good for you and makes you feel better. There’s more to it than that. Meditation—again, done correctly—puts into question more or less everything you tend to do in your search for happiness. But if you lose sight of this, it can become just another strategy for seeking happiness—a more refined version of the problem you already have." - Sam Harris

    [–]morphite65 0 points1 point  (0 children)

    forget about youre cellphone

    While this may be a typo, it still holds true for many people (myself at one time included) - you have to realize that you are more than a cell phone. You are more than a Facebook account. You are a living, breathing human being with more thoughts and desires than could possibly fit into 140 characters or a "relationship status" change. Time spent unplugged from the constraints of technology is a must.

    [–][deleted] 6 points7 points  (0 children)

    Meditation not only allows me to be 'in the moment' but it allows me to reach a true state of not giving a fuck. The first time I meditated I did so before a shift at work. Now, originally this particular shift would have left me exploding with rage. However, because of the meditation, I was able to see how losing frame didn't help me in the slightest. It wasn't a conscious mental decision to suppress my anger. I genuinely didn't give a fuck.

    [–]longerdistance 4 points5 points  (1 child)

    One of the most profoundly meditative states I've ever been in has been while listening to "The Power of Now" audiobook read by the author Eckhart Tolle. Even this guy's voice conveys presence.

    buy it.

    Youtube.

    Piratebay.

    [–]Louniness 0 points1 point  (0 children)

    Ahh this book has been such an eye opener to me. Im going to say no more - just read it!

    [–][deleted] 3 points4 points  (0 children)

    It's more important to meditate literally every single day than it is to meditate for a long time. Don't start out forcing yourself to sit for an hour each day. Just meditate for ten or fifteen minutes when you start out, but do it every day.

    Your mind is going to get uncomfortable and lie to you by saying "you don't have time to meditate right now, you can do it tomorrow." That's like saying "I don't have time to sharpen my dull axe right now, I have all these trees to cut."

    [–]SuperPierog 2 points3 points  (0 children)

    If you need guides i recommend these. http://www.samharris.org/blog/item/mindfulness-meditation

    [–]Endorsed ContributorLastRevision 2 points3 points  (0 children)

    https://m.soundcloud.com/vulturedotcom/bill-murray-on-what-its-like-to-be-bill-murray

    Caught this just now on r/Meditation... Bill Murray explaining his version of mindfulness and centering ("feel your weight").

    Really beautiful stuff; highly recommend a listen.

    [–]RPthrowaway123 2 points3 points  (0 children)

    I'm still getting in to meditation, this is great advice.

    [–]sebosp 1 point2 points  (0 children)

    I was for some years in some religions/cults that used meditations, some depended on mantra repetition, others on words to be said backward, others on colors, thinking of nothingness, etc, all had their magic and were "spiritual" in the sense that they lacked experimentation and psychology studies, so I left all that nonsense once I started questioning everything and starting to be skeptic. Up until recently I started meditating again without all the magic it had before, as a practice for well-being, I enrolled in "The Science of Happiness" (The playlist for those that don't wanna do the edX course: https://www.youtube.com/playlist?list=PL1t8gs-WJprCbKWJvFRdg0wIIiHIj6P-d) and on Week 6 you can follow the mindfulness theory/highlights, they cite several psychologists and some of them have AudioBooks for different practices (i.e. On Google Play, Jon Kabat-Zinn: https://play.google.com/music/m/Bkoebtqq4h2k6vujl2bm5xjq5si ). I would like to know if anybody has followed the course above (after all, TRP is about well-being, happiness and human nature ) and if you have any thoughts on sections that agree or disagree between TRP and the course or if you have found yourself a middle ground that can play with both views... Course link is https://www.edx.org/course/science-happiness-uc-berkeleyx-gg101x

    [–][deleted] 1 point2 points  (1 child)

    It's not just a Buddhist thing, either. The ancient Stoics loved to meditate on particular ideas. Marcus Aurelius' famous Meditations were exactly that – private dialogues that he wrote as he ruminated on a particular idea.

    One approach that's been helpful to me when fighting oneitis is to do negative visualization, a form of meditation in which you focus on the worst possible outcome. Not only does it help with planning, but it fights the urge to take things for granted. I think it's extraordinarily improved my outlook on life.

    [–]erniesmoove[S] 0 points1 point  (0 children)

    Meditation has different meanings. If your goal is to be mindfull you have to be an observer of your thoughts, nothing more. To be aware of what is happening here and now. Thats how you achieve mental peace.

    [–]CanFirst 1 point2 points  (0 children)

    www.headspace.com

    This guy makes it pretty easy to understand without all the spirtual side of things.

    [–]CornyHoosier 1 point2 points  (1 child)

    At first your thoughts will suddenly take you away like a furious train. This is normal. You are breaking a life time habit and the mind will not give you an easy fight. It will try to fool you because you were so attached to it. You will have fear, because it will be like losing yourself. Do not go with this. Stick to your mission, be consistent.

    I started learning meditation about a month ago based on someones suggestion here on TRP. This sentence is incredibly accurate; it was a very hard struggle to stop my mind from thinking about things that are not in the present/in front of me. The first week I could literally only make it 2-3 exhales before I realized my mind started to wander. However, the more I've been training my brain to focus the longer I've gotten.

    Just a suggestion: I tried a few soothing musical tones and found that it ended up hindering me more than helping to focus. I found that "nature" sounds were much more beneficial. Growing up I was always outdoors so I think that's why it calms me. I would imagine background noise is different for everyone.

    [–]erniesmoove[S] 0 points1 point  (0 children)

    When I started to stare and focus with my eyes open while meditating things got a lot easier. Remember, you are not trying to control your thoughts. You are a simple observer. You are the awareness. See how thoughts come and go, but do not go where they lead you.

    [–][deleted] 1 point2 points  (0 children)

    LOVE meditating: I was feeling frazzled walking to the gas station to buy some coffee the other day. I noticed it, and focused on my breath as I walked. From the first filling station to the door (about 40 feet), boom - I was back.

    So crazy. So real.

    [–]Anaxamandrous 1 point2 points  (0 children)

    That soundcloud dude is as relaxing to me as Bob Ross. And that is no small compliment. Very cool!

    [–]MattieGirsh 0 points1 point  (2 children)

    Any suggested books on the subject?

    [–]erniesmoove[S] 1 point2 points  (0 children)

    With spiritual approach:

    • The Power of Now by Eckhart Tolle.
    • Stillness Speaks by Eckhart Tolle.

    Non-spiritual:

    • Waking Up by Sam Harris.
    • 10% Happier by Dan Harris.

    [–]Im_Hitler 0 points1 point  (2 children)

    What are your thoughts on guided meditation?

    [–]erniesmoove[S] 1 point2 points  (0 children)

    I dont see a use for it. Mindfull meditation is a simple task: be aware of what is happening here and now. To be only an observer.

    This one is a simple guided meditation I used to do:

    https://soundcloud.com/samharrisorg/mindfulness-meditation-9

    [–]llcjer 0 points1 point  (0 children)

    Anyone interested, check out The Master Key System by Charles F. Haanel. Legend has it that Bill Gates found this book as a senior at Harvard, dropped out, and started Microsoft.

    [–]SwissPablo 0 points1 point  (1 child)

    Just last night I was trying to meditate. The irritating thoughts would just keep on coming and it drove me mad. But I really need to keep at it and work that mental muscle. Sleeping is a real problem because my mind just won't switch off.

    [–]erniesmoove[S] 1 point2 points  (0 children)

    Just watch them as they come and go. You are sitting in a theatre watching a movie. You are not part of that movie. Just watch and relax. When you bring your attention to the breath the irritating thoughts will dissapear because you will no longer be giving energy to them. Keep it up.

    [–]kazaul 0 points1 point  (2 children)

    I like this post a lot but am somewhat dumbfounded at the same time. Thing is, I always was fascinated by meditation but never figured out what it's supposed to achieve. If I do what you describe, my voice just shuts off. There is no thought, no emotion, just an empty mind and the odd physical sensations until I let my mind wander again. I can keep this up for a quarter of an hour easily... but why?

    Is simply being hollow the point? Because I gain more insight and ease of mind by listening to myself think and feel, then taking that information and analyzing it from a 'detached' mental origin. Sitting with a hollow existence while doing nothing just seems so pointless unless I am really worked up about something, but even then all it does is delay my thoughts. I gain no sensation at all and it definitely doesn't make me feel at peace with myself. Just empty.

    [–]erniesmoove[S] 0 points1 point  (1 child)

    Having your eyes open and focused while meditating is a much more powerful technique of meditation. It makes meditation a lot easier by reducing the amount of thought distraction. You are not emptying your mind, you are just watching it with less disturbance. The only goal is to be aware of any thought, sensations and emotions that arise without getting lost in them. This creates a lasting powerful focus, even after meditating, making it easier to enter what is called "the zone". You are aware of what is happening and not "lost", that is the goal.

    What you describe as your experience sounds like the mind might be tricking you. The moment you start analyzing things you get involved in thought. Remember, you are the awareness, be that. Maybe that’s why you are not feeling the result of meditation: feeling free, vibrantly alive, focused and with a constant feeling of joy. Don’t wait for them to appear, be them.

    “So give up waiting as a state of mind. When you catch yourself slipping into waiting . . . snap out of it. Come into the present moment. Just be, and enjoy being. If you are present, there is never any need for you to wait for anything. So next time somebody says, “Sorry to have kept you waiting,” you can reply, “That’s all right, I wasn’t waiting. I was just standing” – ET.

    [–]kazaul 0 points1 point  (0 children)

    Thank you very much for this answer. I know what sensation you are describing - just never associated it with meditation. You're right. My mind is tricking me due to my expectations of what should be rather than what is. This all makes a lot more sense now.

    [–]Nola_son 0 points1 point  (0 children)

    Powerful, Same Harris!

    [–]ostroman1989 -1 points0 points  (0 children)

    meditation can make you very dark triad, as it unleashes the primary psychopathy mimicking part.

    [–]IJustWannaBeKing -2 points-1 points  (0 children)

    include <iostream>

    include <fstream>

    using namespace std; void writing(); void deleting(); void searching();

    class student {

    public: int age = 0; string name;

    void SetGpa(float x) { gpa = x; } float GetGpa() { return gpa; }

    private: float gpa = 0.0;

    };

    int main() { int opt; cout << "Please Enter an option number to continue: "; cout << " Press 1 for New Record insertion"; cout << " Press 2 for Record Deletion"; cout << " Press 3 for Searching a Record"; cout << " Press 4 for Updating a Record"; cout << " Enter option Number: "; cin >> opt;

    switch (opt) { case 1: { writing(); break; }

    case 2: { deleting(); break; }

    case 3: { searching(); break; } case 4: { deleting(); writing(); cout << "Record has been updated! "; break; } } }

    void writing() { float a; student moiz; cout << "Please enter name of student: "; cin >> moiz.name; cout << "Please enter the age of student: "; cin >> moiz.age; cout << "Pleae enter the Gpa of student: "; cin >> a; moiz.SetGpa(a);

    ofstream myfile; myfile.open("record.txt", ios::app | ios::out); myfile << endl << moiz.name << endl; myfile << moiz.age << endl; myfile << moiz.GetGpa(); myfile.close(); }

    void deleting() {

    string line, name; cout << "Please Enter the name of record you want to delete: "; cin >> name; ifstream myfile; ofstream temp; myfile.open("record.txt"); temp.open("temp.txt"); while (getline(myfile, line)) { if (line != name) temp << line << endl; } cout << "The record with the name " << name << " has been deleted if it exsisted" << endl; myfile.close(); temp.close(); remove("record.txt"); rename("temp.txt", "record.txt"); }

    void searching() { ifstream fileInput; fileInput.open("record.txt"); string line, search; cout << "Please enter the term to search: "; cin >> search; for (unsigned int curLine = 0; getline(fileInput, line); curLine++) { if (line.find(search) != string::npos) { cout << "found: " << search << " on line: " << curLine << endl; } else { cout << "Error! Not found on Line" << curLine << endl; } } }

    [–]bonbravebonobo -3 points-2 points  (0 children)

    this how to stuff is junk, go sit down and breathe

    [–]foldpak111 -5 points-4 points  (0 children)

    Stare into this with headphones every morning

    https://youtu.be/rLWgmWgm1QY